Skip to content

Commit

Permalink
sessions: invoke error handlers
Browse files Browse the repository at this point in the history
when MPI_Session_create_errhandler blows up.

Related to open-mpi#9097

Signed-off-by: Howard Pritchard <[email protected]>
  • Loading branch information
hppritcha committed Feb 16, 2022
1 parent d94e0bb commit e514ce1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ompi/mpi/c/session_create_errhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ int MPI_Session_create_errhandler (MPI_Session_errhandler_function *session_errh

if ( MPI_PARAM_CHECK ) {
if (NULL == errhandler || NULL == session_errhandler_fn) {
return MPI_ERR_ARG;
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_ARG,
FUNC_NAME);
}
}

Expand All @@ -47,5 +48,5 @@ int MPI_Session_create_errhandler (MPI_Session_errhandler_function *session_errh
err = MPI_ERR_INTERN;
}

return err;
OMPI_ERRHANDLER_NOHANDLE_RETURN(err, MPI_ERR_INTERN, FUNC_NAME);
}

0 comments on commit e514ce1

Please sign in to comment.