aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihal Jere <nihal@nihaljere.xyz>2021-02-19 15:04:06 -0600
committerNihal Jere <nihal@nihaljere.xyz>2021-02-19 15:05:07 -0600
commit9cd6f02395b5420d72e36ecadb612fc5b1537e56 (patch)
tree247c8e1975c2171e4b4744cdc681922a9d91f445
parent747067e64e64c2723c5a71f518498c2162195d45 (diff)
downloaddwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.tar.gz
dwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.tar.bz2
dwmblocks-9cd6f02395b5420d72e36ecadb612fc5b1537e56.zip
ignore real-time signals by default, unless explicitly set
-rw-r--r--dwmblocks.c4
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)