Skip to content

Commit

Permalink
Ensure the process name is positive when using direct launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Castain authored and bosilca committed Oct 3, 2016
1 parent 9921c61 commit 4e62fb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opal/mca/pmix/pmix112/pmix1_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ int pmix1_client_init(void)
/* we were launched by someone else, so make the
* jobid just be the hash of the nspace */
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
* first, and so we'll check it first */
Expand Down
2 changes: 2 additions & 0 deletions opal/mca/pmix/pmix120/pmix120_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ int pmix120_client_init(void)
/* we were launched by someone else, so make the
* jobid just be the hash of the nspace */
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
* first, and so we'll check it first */
Expand Down

0 comments on commit 4e62fb0

Please sign in to comment.