Do less in NEWSIGNALHANDLER handler

Since there are less crashes than ever before, and there are risks
with trying to do anything inside a signal handler beyond the most
basic recovery stuff, we should avoid doing *anything* in here.
This commit is contained in:
Eidolon 2024-05-08 20:00:24 -05:00
parent df28169031
commit 75b749dda8

View file

@ -447,10 +447,8 @@ FUNCNORETURN static ATTRNORETURN void signal_handler(INT32 num)
write_backtrace(num);
#endif
I_ReportSignal(num, 0);
I_ShutdownSystem();
signal(num, SIG_DFL); //default signal action
raise(num);
I_Quit();
}
#endif