Skip to content

Commit 9178219

Browse files
author
Ralph Castain
committed
Deregister event handlers only on final call to finalize. Ensure we pass PMIx mca params
Signed-off-by: Ralph Castain <[email protected]>
1 parent e07ed6d commit 9178219

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

opal/mca/pmix/pmix2x/pmix2x_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ int pmix2x_client_finalize(void)
168168
OPAL_PMIX_ACQUIRE_THREAD(&opal_pmix_base.lock);
169169
--opal_pmix_base.initialized;
170170

171-
if (0 < opal_pmix_base.initialized) {
171+
if (0 == opal_pmix_base.initialized) {
172172
/* deregister all event handlers */
173173
OPAL_LIST_FOREACH_SAFE(event, ev2, &mca_pmix_pmix2x_component.events, opal_pmix2x_event_t) {
174174
OPAL_PMIX_DESTRUCT_LOCK(&event->lock);

orte/mca/schizo/ompi/schizo_ompi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,8 @@ static int parse_env(char *path,
691691
}
692692

693693
for (i = 0; NULL != srcenv[i]; ++i) {
694-
if (0 == strncmp("OMPI_", srcenv[i], 5)) {
694+
if (0 == strncmp("OMPI_", srcenv[i], 5) ||
695+
0 == strncmp("PMIX_", srcenv[i], 5)) {
695696
/* check for duplicate in app->env - this
696697
* would have been placed there by the
697698
* cmd line processor. By convention, we

0 commit comments

Comments
 (0)