mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
signal: ignore signals after critical
This commit is contained in:
parent
066e0ae88f
commit
21d9efe5c9
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue