Skip to content

Commit a5bdae8

Browse files
committed
Remove the spurious injection of unknown PMIx error events
Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu> (cherry picked from commit eef02b0)
1 parent 032f745 commit a5bdae8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/errhandler/errhandler.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,12 @@ int ompi_errhandler_proc_failed_internal(ompi_proc_t* ompi_proc, int status, boo
397397
pmix_info_t pmix_info[1];
398398
pmix_status_t prc;
399399

400+
assert(OPAL_ERR_PROC_ABORTED == status);
400401
OPAL_PMIX_CONVERT_NAME(&pmix_source, OMPI_PROC_MY_NAME);
401402
OPAL_PMIX_CONVERT_NAME(&pmix_proc, &ompi_proc->super.proc_name);
402403
PMIX_INFO_CONSTRUCT(&pmix_info[0]);
403404
PMIX_INFO_LOAD(&pmix_info[0], PMIX_EVENT_AFFECTED_PROC, &pmix_proc, PMIX_PROC);
404-
prc = PMIx_Notify_event(status, &pmix_source, PMIX_RANGE_LOCAL,
405+
prc = PMIx_Notify_event(PMIX_ERR_PROC_ABORTED, &pmix_source, PMIX_RANGE_LOCAL,
405406
pmix_info, 1, NULL, &active);
406407
if( PMIX_SUCCESS != prc &&
407408
PMIX_OPERATION_SUCCEEDED != prc ) {
@@ -450,7 +451,7 @@ static void *ompi_errhandler_event_cb(int fd, int flags, void *context) {
450451
continue; /* we are not 'MPI connected' with this proc. */
451452
}
452453
assert( !ompi_proc_is_sentinel(proc) );
453-
ompi_errhandler_proc_failed_internal(proc, status, false);
454+
ompi_errhandler_proc_failed_internal(proc, OPAL_ERR_PROC_ABORTED, false);
454455
}
455456
opal_event_del(&event->super);
456457
free(event);

0 commit comments

Comments
 (0)