Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 8444496

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 open-mpi/ompi@556c32e)
1 parent be856f7 commit 8444496

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-2011 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$
1515
*
@@ -133,7 +133,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
133133
fprintf(stderr, "[%s:%d] Local abort %s completed successfully; not able to aggregate error messages, and not able to guarantee that all other processes were killed!\n",
134134
host, (int) pid, ompi_mpi_finalized ?
135135
"after MPI_FINALIZE" : "before MPI_INIT");
136-
exit(errcode);
136+
_exit(errcode);
137137
}
138138

139139
/* abort local procs in the communicator. If the communicator is

0 commit comments

Comments
 (0)