signal: ignore signals after critical

This commit is contained in:
Vaxry 2024-03-10 21:42:42 +00:00
parent 066e0ae88f
commit 21d9efe5c9

View file

@ -324,6 +324,15 @@ static void handlePollTerminate(int sig) {
static void handleCriticalSignal(int sig) { static void handleCriticalSignal(int sig) {
g_pHyprlock->attemptRestoreOnDeath(); g_pHyprlock->attemptRestoreOnDeath();
// remove our handlers
struct sigaction sa;
sa.sa_handler = SIG_IGN;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGABRT, &sa, NULL);
sigaction(SIGSEGV, &sa, NULL);
abort(); abort();
} }