1
1

Deregister event handlers only on final call to finalize. Ensure we pass PMIx mca params

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
Ralph Castain 2017-06-28 15:00:43 -07:00
родитель e07ed6dccd
Коммит 9178219e6b
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -168,7 +168,7 @@ int pmix2x_client_finalize(void)
OPAL_PMIX_ACQUIRE_THREAD(&opal_pmix_base.lock); OPAL_PMIX_ACQUIRE_THREAD(&opal_pmix_base.lock);
--opal_pmix_base.initialized; --opal_pmix_base.initialized;
if (0 < opal_pmix_base.initialized) { if (0 == opal_pmix_base.initialized) {
/* deregister all event handlers */ /* deregister all event handlers */
OPAL_LIST_FOREACH_SAFE(event, ev2, &mca_pmix_pmix2x_component.events, opal_pmix2x_event_t) { OPAL_LIST_FOREACH_SAFE(event, ev2, &mca_pmix_pmix2x_component.events, opal_pmix2x_event_t) {
OPAL_PMIX_DESTRUCT_LOCK(&event->lock); OPAL_PMIX_DESTRUCT_LOCK(&event->lock);

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

@ -691,7 +691,8 @@ static int parse_env(char *path,
} }
for (i = 0; NULL != srcenv[i]; ++i) { for (i = 0; NULL != srcenv[i]; ++i) {
if (0 == strncmp("OMPI_", srcenv[i], 5)) { if (0 == strncmp("OMPI_", srcenv[i], 5) ||
0 == strncmp("PMIX_", srcenv[i], 5)) {
/* check for duplicate in app->env - this /* check for duplicate in app->env - this
* would have been placed there by the * would have been placed there by the
* cmd line processor. By convention, we * cmd line processor. By convention, we