diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-02-19 16:49:52 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-02-19 16:49:52 -0500 |
commit | 2569bdb430348755490cdfb43f5ef092a44234e1 (patch) | |
tree | 1762fe6005cb73e5db98653ea1e21d149cbbfec4 | |
parent | 7e675aab544fa63256e295dbf997527e96afdfba (diff) | |
parent | c9e45f9bed6fa44a7d0e29e4aee8ba93297d0cc0 (diff) | |
download | dwmblocks-2569bdb430348755490cdfb43f5ef092a44234e1.tar.gz dwmblocks-2569bdb430348755490cdfb43f5ef092a44234e1.tar.bz2 dwmblocks-2569bdb430348755490cdfb43f5ef092a44234e1.zip |
Merge branch 'master' of https://github.com/noocsharp/dwmblocks into noocsharp-master
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | dwmblocks.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -31,11 +31,7 @@ but is faster. Just add 34 to your typical signal number. My volume module *never* updates on its own, instead I have this command run along side my volume shortcuts in dwm to only update it when relevant. -Note that if you signal an unexpected signal to dwmblocks, it will probably -crash. So if you disable a module, remember to also disable any cronjobs or -other scripts that might signal to that module. - -Note also that all modules must have different signal numbers. +Note that all modules must have different signal numbers. # Clickable modules diff --git a/dwmblocks.c b/dwmblocks.c index 68267d7..18f58fb 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -111,6 +111,10 @@ void getsigcmds(int signal) void setupsignals() { struct sigaction sa; + + for(int i = SIGRTMIN; i <= SIGRTMAX; i++) + signal(i, SIG_IGN); + for(int i = 0; i < LENGTH(blocks); i++) { if (blocks[i].signal > 0) |