Skip to content

Commit 78e9d01

Browse files
authored
Merge pull request #6266 from hjelmn/fix_issue_6259_finalize_ordering_issue
opal/runtime: fix teardown ordering
2 parents 1c5f97b + c7867ff commit 78e9d01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/runtime/opal_init.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* All Rights reserved.
2323
* Copyright (c) 2018 Mellanox Technologies, Inc.
2424
* All rights reserved.
25-
* Copyright (c) 2018 Triad National Security, LLC. All rights
25+
* Copyright (c) 2018-2019 Triad National Security, LLC. All rights
2626
* reserved.
2727
* $COPYRIGHT$
2828
*
@@ -388,9 +388,6 @@ opal_init_util(int* pargc, char*** pargv)
388388

389389
opal_init_called = true;
390390

391-
/* register for */
392-
opal_finalize_register_cleanup_arg (mca_base_framework_close_list, opal_init_util_frameworks);
393-
394391
/* set the nodename right away so anyone who needs it has it. Note
395392
* that we don't bother with fqdn and prefix issues here - we let
396393
* the RTE later replace this with a modified name if the user
@@ -511,6 +508,9 @@ opal_init_util(int* pargc, char*** pargv)
511508
return ret;
512509
}
513510

511+
/* register for */
512+
opal_finalize_register_cleanup_arg (mca_base_framework_close_list, opal_init_util_frameworks);
513+
514514
OPAL_TIMING_ENV_NEXT(otmng, "opal_if_init");
515515

516516
return OPAL_SUCCESS;

0 commit comments

Comments
 (0)