Skip to content

Commit ad52a79

Browse files
rhc54awlauria
authored andcommitted
Update the fault codes registration
PRRTE is being a little more specific in its fault notifications, so add a couple of codes indicating of process failures. Signed-off-by: Ralph Castain <rhc@pmix.org>
1 parent 2030991 commit ad52a79

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ompi/instance/instance.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,13 @@ static int ompi_mpi_instance_init_common (int argc, char **argv)
434434
/* give it a name so we can distinguish it */
435435
PMIX_INFO_LOAD(&info[1], PMIX_EVENT_HDLR_NAME, "ULFM-Event-handler", PMIX_STRING);
436436
OPAL_PMIX_CONSTRUCT_LOCK(&mylock);
437-
pmix_status_t codes[2] = { PMIX_ERR_PROC_ABORTED, PMIX_ERR_LOST_CONNECTION };
438-
PMIx_Register_event_handler(codes, 1, info, 2, ompi_errhandler_callback, evhandler_reg_callbk, (void*)&mylock);
437+
pmix_status_t codes[4] = {
438+
PMIX_ERR_PROC_ABORTED,
439+
PMIX_ERR_EXIT_NONZERO_TERM,
440+
PMIX_ERR_PROC_ABORTED_BY_SIG,
441+
PMIX_ERR_LOST_CONNECTION
442+
};
443+
PMIx_Register_event_handler(codes, 3, info, 2, ompi_errhandler_callback, evhandler_reg_callbk, (void*)&mylock);
439444
OPAL_PMIX_WAIT_THREAD(&mylock);
440445
rc = mylock.status;
441446
ompi_ulfm_pmix_err_handler = mylock.errhandler_ref;

0 commit comments

Comments
 (0)