Skip to content

Commit

Permalink
disambiguate call to abort() in safempi.h
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Feb 1, 2024
1 parent e8b9f4e commit 2eb3bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/madness/world/safempi.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#include <madness/world/type_traits.h>
#include <iostream>
#include <csignal>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <sstream>
Expand Down Expand Up @@ -805,7 +806,7 @@ namespace SafeMPI {
struct sigaction sa;
auto rc = sigaction(SIGABRT, NULL, &sa);
if (rc == 0 && sa.sa_handler != SIG_DFL) {
abort();
std::abort();
} else {
MPI_Abort(pimpl->comm, code);
}
Expand Down

0 comments on commit 2eb3bcf

Please sign in to comment.