From 556c32e1d19d7a92818862f0b409fd42a28d98e2 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 27 Aug 2015 17:05:58 -0700 Subject: [PATCH] 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@17846411c328f48a6f3416b760e9599d7f9dd51f. --- ompi/runtime/ompi_mpi_abort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/runtime/ompi_mpi_abort.c b/ompi/runtime/ompi_mpi_abort.c index 787686809c..278711b056 100644 --- a/ompi/runtime/ompi_mpi_abort.c +++ b/ompi/runtime/ompi_mpi_abort.c @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2010-2011 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2014 Research Organization for Information Science * and Technology (RIST). All rights reserved. @@ -192,7 +192,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm, 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", host, (int) pid, ompi_mpi_finalized ? "after MPI_FINALIZE started" : "before MPI_INIT completed"); - exit(errcode == 0 ? 1 : errcode); + _exit(errcode == 0 ? 1 : errcode); } /* If OMPI is initialized and we have a non-NULL communicator,