* 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:
|
COMPLETE:
|
||||||
if (proc) {
|
if (proc) {
|
||||||
|
if (create) {
|
||||||
ompi_process_info.proc_session_dir = strdup(fulldirpath);
|
ompi_process_info.proc_session_dir = strdup(fulldirpath);
|
||||||
|
}
|
||||||
fulldirpath = dirname(fulldirpath);
|
fulldirpath = dirname(fulldirpath);
|
||||||
}
|
}
|
||||||
if (job) {
|
if (job) {
|
||||||
|
if (create) {
|
||||||
ompi_process_info.job_session_dir = strdup(fulldirpath);
|
ompi_process_info.job_session_dir = strdup(fulldirpath);
|
||||||
|
}
|
||||||
fulldirpath = dirname(fulldirpath);
|
fulldirpath = dirname(fulldirpath);
|
||||||
}
|
}
|
||||||
|
if (create) {
|
||||||
ompi_process_info.universe_session_dir = strdup(fulldirpath);
|
ompi_process_info.universe_session_dir = strdup(fulldirpath);
|
||||||
|
}
|
||||||
|
|
||||||
CLEANUP:
|
CLEANUP:
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
* \par \em [process] A directory for the specific process, will house
|
* \par \em [process] A directory for the specific process, will house
|
||||||
* all information for that process.
|
* 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
|
/** @param create A boolean variable that indicates whether or not to
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user