Skip to content

Commit 451b9dc

Browse files
committed
ess: tear down pmix (if any) before oob
1 parent 1b01b6d commit 451b9dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

orte/mca/ess/base/ess_base_std_app.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
1414
* reserved.
1515
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2014 Research Organization for Information Science
16+
* Copyright (c) 2014-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
1919
* $COPYRIGHT$
@@ -39,7 +39,7 @@
3939
#endif
4040

4141
#include "opal/mca/event/event.h"
42-
#include "opal/mca/pmix/pmix.h"
42+
#include "opal/mca/pmix/base/base.h"
4343
#include "opal/util/arch.h"
4444
#include "opal/util/os_path.h"
4545
#include "opal/util/output.h"
@@ -283,6 +283,10 @@ int orte_ess_base_app_finalize(void)
283283
(void) mca_base_framework_close(&orte_routed_base_framework);
284284

285285
(void) mca_base_framework_close(&orte_rml_base_framework);
286+
if (NULL != opal_pmix.finalize) {
287+
opal_pmix.finalize();
288+
(void) mca_base_framework_close(&opal_pmix_base_framework);
289+
}
286290
(void) mca_base_framework_close(&orte_oob_base_framework);
287291
(void) mca_base_framework_close(&orte_state_base_framework);
288292

orte/mca/ess/pmi/ess_pmi_module.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
1414
* All rights reserved.
1515
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2016 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
* $COPYRIGHT$
1719
*
1820
* Additional copyrights may follow
@@ -540,12 +542,6 @@ static int rte_finalize(void)
540542
return ret;
541543
}
542544

543-
/* mark us as finalized */
544-
if (NULL != opal_pmix.finalize) {
545-
opal_pmix.finalize();
546-
(void) mca_base_framework_close(&opal_pmix_base_framework);
547-
}
548-
549545
/* release the event base */
550546
if (progress_thread_running) {
551547
opal_progress_thread_finalize(NULL);

0 commit comments

Comments
 (0)