Commit bc7d49a6 authored by Simon Marlow's avatar Simon Marlow
Browse files

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

Submitted by: tomgr
parent 022f8750
......@@ -355,8 +355,12 @@ hs_exit_(rtsBool wait_foreign)
resetTerminalSettings();
#endif
// uninstall signal handlers
resetDefaultHandlers();
#if defined(RTS_USER_SIGNALS)
if (RtsFlags.MiscFlags.install_signal_handlers) {
// uninstall signal handlers
resetDefaultHandlers();
}
#endif
/* stop timing the shutdown, we're about to print stats */
stat_endExit();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment