Skip to content

Commit d6d033f

Browse files
authored
Merge pull request #9436 from abouteiller/bugfix/spurious-errcode
Remove the spurious injection of unknown PMIx error events
2 parents 4828663 + eef02b0 commit d6d033f

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)