diff options
author | Nihal Jere <nihal@nihaljere.xyz> | 2021-02-19 15:04:06 -0600 |
---|---|---|
committer | Nihal Jere <nihal@nihaljere.xyz> | 2021-02-19 15:05:07 -0600 |
commit | 9cd6f02395b5420d72e36ecadb612fc5b1537e56 (patch) | |
tree | 247c8e1975c2171e4b4744cdc681922a9d91f445 /dwmblocks.c | |
parent | 747067e64e64c2723c5a71f518498c2162195d45 (diff) | |
download | dwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.tar.gz dwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.tar.bz2 dwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.zip |
ignore real-time signals by default, unless explicitly set
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |