mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
reset signal handlers in unrecoverable
This commit is contained in:
@@ -20,12 +20,17 @@ int handleCritSignal(int signo, void* data) {
|
||||
|
||||
void handleUnrecoverableSignal(int sig) {
|
||||
|
||||
// remove our handlers
|
||||
signal(SIGABRT, SIG_DFL);
|
||||
signal(SIGSEGV, SIG_DFL);
|
||||
|
||||
if (g_pHookSystem->m_bCurrentEventPlugin) {
|
||||
longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
CrashReporter::createAndSaveCrash(sig);
|
||||
|
||||
abort();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user