Skip to content

Commit b8a6359

Browse files
committed
ompi_mpi_abort.c: use _exit(), not exit()
In an abort situation, just bail out immediately -- don't try to invoke any atexit()/on_exit()-registered functions. This is similar rationale to open-mpi/ompi@1784641. (cherry picked from commit 556c32e)
1 parent dac0018 commit b8a6359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/runtime/ompi_mpi_abort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12-
* Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
12+
* Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
1313
* Copyright (c) 2010-2011 Oak Ridge National Labs. All rights reserved.
1414
* Copyright (c) 2014 Research Organization for Information Science
1515
* and Technology (RIST). All rights reserved.
@@ -192,7 +192,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
192192
fprintf(stderr, "[%s:%d] Local abort %s completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!\n",
193193
host, (int) pid, ompi_mpi_finalized ?
194194
"after MPI_FINALIZE started" : "before MPI_INIT completed");
195-
exit(errcode == 0 ? 1 : errcode);
195+
_exit(errcode == 0 ? 1 : errcode);
196196
}
197197

198198
/* If OMPI is initialized and we have a non-NULL communicator,

0 commit comments

Comments
 (0)