1
1

Ensure the process name is positive when using direct launch

Fixes #1425
Этот коммит содержится в:
Ralph Castain 2016-03-08 08:31:05 -08:00
родитель 8ffde8d020
Коммит bac6290b22
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -120,6 +120,8 @@ int pmix1_client_init(void)
/* we were launched by someone else, so make the /* we were launched by someone else, so make the
* jobid just be the hash of the nspace */ * jobid just be the hash of the nspace */
OPAL_HASH_STR(my_proc.nspace, pname.jobid); OPAL_HASH_STR(my_proc.nspace, pname.jobid);
/* keep it from being negative */
pname.jobid &= ~(0x8000);
} }
/* insert this into our list of jobids - it will be the /* insert this into our list of jobids - it will be the
* first, and so we'll check it first */ * first, and so we'll check it first */

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

@ -64,6 +64,8 @@ int pmix120_client_init(void)
/* we were launched by someone else, so make the /* we were launched by someone else, so make the
* jobid just be the hash of the nspace */ * jobid just be the hash of the nspace */
OPAL_HASH_STR(my_proc.nspace, pname.jobid); OPAL_HASH_STR(my_proc.nspace, pname.jobid);
/* keep it from being negative */
pname.jobid &= ~(0x8000);
} }
/* insert this into our list of jobids - it will be the /* insert this into our list of jobids - it will be the
* first, and so we'll check it first */ * first, and so we'll check it first */