1
1

Add third flag for open when using O_CREAT. Thanks to "robi" for reporting it and providing a patch.

Fixes trac:4596

Reviewed by rhc, RM-approved

cmr=v1.8.2:reviewer=ompi-gk1.8

This commit was SVN r31626.

The following Trac tickets were found above:
  Ticket 4596 --> https://svn.open-mpi.org/trac/ompi/ticket/4596
Этот коммит содержится в:
Ralph Castain 2014-05-02 21:58:38 +00:00
родитель f9d892b7a4
Коммит fae39a658d

Просмотреть файл

@ -452,7 +452,7 @@ void orte_ess_base_app_abort(int status, bool report)
*/
if (report && orte_routing_is_enabled && orte_create_session_dirs) {
myfile = opal_os_path(false, orte_process_info.proc_session_dir, "aborted", NULL);
fd = open(myfile, O_CREAT);
fd = open(myfile, O_CREAT, S_IRUSR);
close(fd);
/* now introduce a short delay to allow any pending
* messages (e.g., from a call to "show_help") to