Skip to content

Commit

Permalink
Merge in 'release/7.0' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-bot committed Jan 17, 2023
2 parents de2e228 + 7db1c33 commit 153136d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
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

0 comments on commit 153136d

Please sign in to comment.