Skip to content
Snippets Groups Projects
Commit 14563262 authored by Simon Marlow's avatar Simon Marlow Committed by Austin Seipp
Browse files

Only uninstall signal handlers if they were actually installed (#9068)

Submitted by: tomgr

(cherry picked from commit bc7d49a6)
parent 92d08a69
No related branches found
No related tags found
No related merge requests found
...@@ -355,8 +355,12 @@ hs_exit_(rtsBool wait_foreign) ...@@ -355,8 +355,12 @@ hs_exit_(rtsBool wait_foreign)
resetTerminalSettings(); resetTerminalSettings();
#endif #endif
// uninstall signal handlers #if defined(RTS_USER_SIGNALS)
resetDefaultHandlers(); if (RtsFlags.MiscFlags.install_signal_handlers) {
// uninstall signal handlers
resetDefaultHandlers();
}
#endif
/* stop timing the shutdown, we're about to print stats */ /* stop timing the shutdown, we're about to print stats */
stat_endExit(); stat_endExit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment