1
1

* only edit the procinfo struct if we are creating the thing

This commit was SVN r2044.
Этот коммит содержится в:
Brian Barrett 2004-08-11 16:24:00 +00:00
родитель cda8d85f80
Коммит 4b2634fe08
2 изменённых файлов: 12 добавлений и 3 удалений

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

@ -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