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
Этот коммит содержится в:
родитель
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
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user