mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:05:58 +01:00
reset signal handlers in unrecoverable
This commit is contained in:
parent
52878161e4
commit
556c7dd51f
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue