aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-08-15 12:20:43 +0000
committerGitHub <noreply@github.com>2022-08-15 12:20:43 +0000
commitf9d51170c424a60d11c5eeeb87145d2ed4dda993 (patch)
treec12c18bfc8deb98edff4f6d7ac77e2158b57d9da
parentMerge pull request #104 from ethanv2/freeze (diff)
parentExplicitly zero signal mask (diff)
downloaddwmblocks-f9d51170c424a60d11c5eeeb87145d2ed4dda993.tar.gz
dwmblocks-f9d51170c424a60d11c5eeeb87145d2ed4dda993.tar.bz2
dwmblocks-f9d51170c424a60d11c5eeeb87145d2ed4dda993.tar.xz
dwmblocks-f9d51170c424a60d11c5eeeb87145d2ed4dda993.tar.zst
dwmblocks-f9d51170c424a60d11c5eeeb87145d2ed4dda993.zip
Merge pull request #105 from ethanv2/freeze-v2
Fix bar clicking
-rw-r--r--dwmblocks.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index fb56d95..0186eff 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -185,11 +185,12 @@ void setroot()
{
/* block all signals until after root updated */
sigset_t new, old;
- sigfillset(&new);
- sigdelset(&new, SIGINT);
- sigdelset(&new, SIGTERM);
+ 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);
}