mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19: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) {
|
void handleUnrecoverableSignal(int sig) {
|
||||||
|
|
||||||
|
// remove our handlers
|
||||||
|
signal(SIGABRT, SIG_DFL);
|
||||||
|
signal(SIGSEGV, SIG_DFL);
|
||||||
|
|
||||||
if (g_pHookSystem->m_bCurrentEventPlugin) {
|
if (g_pHookSystem->m_bCurrentEventPlugin) {
|
||||||
longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1);
|
longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CrashReporter::createAndSaveCrash(sig);
|
CrashReporter::createAndSaveCrash(sig);
|
||||||
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue