Skip to content

Commit 7b84207

Browse files
author
rhc54
committed
Merge pull request #1436 from rhc54/topic/names
Ensure the process name is positive when using direct launch
2 parents 0c4b5f1 + bac6290 commit 7b84207

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

opal/mca/pmix/pmix112/pmix1_client.c

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

opal/mca/pmix/pmix120/pmix120_client.c

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

0 commit comments

Comments
 (0)