Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/coreclr/pal/src/exception/signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,22 +294,6 @@ void SEHCleanupSignals()
}
}

/*++
Function :
SEHCleanupAbort()

Restore default SIGABORT signal handlers

(no parameters, no return value)
--*/
void SEHCleanupAbort()
{
if (g_registered_signal_handlers)
{
restore_signal(SIGABRT, &g_previous_sigabrt);
}
}

/* internal function definitions **********************************************/

/*++
Expand Down
10 changes: 0 additions & 10 deletions src/coreclr/pal/src/include/pal/signal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,4 @@ Function :
--*/
void SEHCleanupSignals();

/*++
Function :
SEHCleanupAbort()

Restore default SIGABORT signal handlers

(no parameters, no return value)
--*/
void SEHCleanupAbort();

#endif /* _PAL_SIGNAL_HPP_ */
5 changes: 3 additions & 2 deletions src/coreclr/pal/src/thread/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2677,8 +2677,9 @@ PROCAbort(int signal)

PROCCreateCrashDumpIfEnabled(signal);

// Restore the SIGABORT handler to prevent recursion
SEHCleanupAbort();
// Restore all signals; the SIGABORT handler to prevent recursion and
// the others to prevent multiple core dumps from being generated.
SEHCleanupSignals();

// Abort the process after waiting for the core dump to complete
abort();
Expand Down