Skip to content

Commit e514ce1

Browse files
committed
sessions: invoke error handlers
when MPI_Session_create_errhandler blows up. Related to #9097 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent d94e0bb commit e514ce1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/mpi/c/session_create_errhandler.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ int MPI_Session_create_errhandler (MPI_Session_errhandler_function *session_errh
3434

3535
if ( MPI_PARAM_CHECK ) {
3636
if (NULL == errhandler || NULL == session_errhandler_fn) {
37-
return MPI_ERR_ARG;
37+
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_ARG,
38+
FUNC_NAME);
3839
}
3940
}
4041

@@ -47,5 +48,5 @@ int MPI_Session_create_errhandler (MPI_Session_errhandler_function *session_errh
4748
err = MPI_ERR_INTERN;
4849
}
4950

50-
return err;
51+
OMPI_ERRHANDLER_NOHANDLE_RETURN(err, MPI_ERR_INTERN, FUNC_NAME);
5152
}

0 commit comments

Comments
 (0)