From 8f9974c5dcbdf8099bb05029699476c897f07ed8 Mon Sep 17 00:00:00 2001 From: Ethan Marshall Date: Tue, 9 Aug 2022 15:11:27 +0100 Subject: Do not block interrupt/terminate signals --- dwmblocks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwmblocks.c b/dwmblocks.c index b7f38a7..fb56d95 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -186,6 +186,9 @@ void setroot() /* block all signals until after root updated */ sigset_t new, old; sigfillset(&new); + sigdelset(&new, SIGINT); + sigdelset(&new, SIGTERM); + if (sigprocmask(SIG_SETMASK, &new, &old) < 0) { perror("sigset"); exit(1); -- cgit v1.2.3