From 21d9efe5c94f1a292d181af70b32059509eada68 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 10 Mar 2024 21:42:42 +0000 Subject: [PATCH] signal: ignore signals after critical --- src/core/hyprlock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index f13a174..bbc2d66 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -324,6 +324,15 @@ static void handlePollTerminate(int sig) { static void handleCriticalSignal(int sig) { 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(); }