forgor about the new signal handler oop

This commit is contained in:
Alug committed 2025-06-26 00:38:48 +02:00
1 parent 454c48dd1e
commit 9764cbbfe0
1 file changed
+10
+10
View File
@@ -550,6 +550,16 @@ FUNCNORETURN static ATTRNORETURN void signal_handler(INT32 num)
FUNCNORETURN static ATTRNORETURN void quit_handler(int num)
{
#ifdef HAVE_THREADS
if (g_main_thread_id != std::this_thread::get_id())
{
// Do not attempt any sort of recovery if this signal triggers off the main thread
signal(num, SIG_DFL);
raise(num);
exit(-2);
}
#endif
signal(num, SIG_DFL); //default signal action
raise(num);
I_Quit();