* only edit the procinfo struct if we are creating the thing
This commit was SVN r2044.
Этот коммит содержится в:
родитель
cda8d85f80
Коммит
4b2634fe08
@ -151,14 +151,20 @@ int ompi_session_dir(bool create, char *prefix, char *user, char *hostid, char *
|
||||
|
||||
COMPLETE:
|
||||
if (proc) {
|
||||
ompi_process_info.proc_session_dir = strdup(fulldirpath);
|
||||
if (create) {
|
||||
ompi_process_info.proc_session_dir = strdup(fulldirpath);
|
||||
}
|
||||
fulldirpath = dirname(fulldirpath);
|
||||
}
|
||||
if (job) {
|
||||
ompi_process_info.job_session_dir = strdup(fulldirpath);
|
||||
if (create) {
|
||||
ompi_process_info.job_session_dir = strdup(fulldirpath);
|
||||
}
|
||||
fulldirpath = dirname(fulldirpath);
|
||||
}
|
||||
ompi_process_info.universe_session_dir = strdup(fulldirpath);
|
||||
if (create) {
|
||||
ompi_process_info.universe_session_dir = strdup(fulldirpath);
|
||||
}
|
||||
|
||||
CLEANUP:
|
||||
if (tmp) {
|
||||
|
@ -66,6 +66,9 @@
|
||||
* \par \em [process] A directory for the specific process, will house
|
||||
* all information for that process.
|
||||
*
|
||||
* \par If \c create is \c true, the directory will be created and the
|
||||
* proc_info structure will be updated. If proc_info is false,
|
||||
*
|
||||
*/
|
||||
|
||||
/** @param create A boolean variable that indicates whether or not to
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user