aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-10 23:26:03 +0100
committerEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-10 23:27:20 +0100
commit2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91 (patch)
treec12c18bfc8deb98edff4f6d7ac77e2158b57d9da
parentFix bar clicking (diff)
downloaddwmblocks-2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91.tar.gz
dwmblocks-2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91.tar.bz2
dwmblocks-2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91.tar.xz
dwmblocks-2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91.tar.zst
dwmblocks-2e2e95ac36b7b9cfa0ae886aced43c9b4b9dba91.zip
Explicitly zero signal mask
-rw-r--r--dwmblocks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index c2e1477..0186eff 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -188,8 +188,9 @@ void setroot()
for (unsigned int i = SIGRTMIN; i <= SIGRTMAX; i++) {
sigaddset(&new, i);
}
+ sigemptyset(&old);
- if (sigprocmask(SIG_SETMASK, &new, &old) < 0) {
+ if (sigprocmask(SIG_SETMASK, &new, NULL) < 0) {
perror("sigset");
exit(1);
}