aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-09 15:11:27 +0100
committerEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-09 15:11:27 +0100
commit8f9974c5dcbdf8099bb05029699476c897f07ed8 (patch)
tree7727303673af37591a68dabcf5b7cf32d62e9597
parentFix statusbar freezing (diff)
downloaddwmblocks-8f9974c5dcbdf8099bb05029699476c897f07ed8.tar.gz
dwmblocks-8f9974c5dcbdf8099bb05029699476c897f07ed8.tar.bz2
dwmblocks-8f9974c5dcbdf8099bb05029699476c897f07ed8.tar.xz
dwmblocks-8f9974c5dcbdf8099bb05029699476c897f07ed8.tar.zst
dwmblocks-8f9974c5dcbdf8099bb05029699476c897f07ed8.zip
Do not block interrupt/terminate signals
-rw-r--r--dwmblocks.c3
1 files changed, 3 insertions, 0 deletions
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);