From 9cd6f02395b5420d72e36ecadb612fc5b1537e56 Mon Sep 17 00:00:00 2001 From: Nihal Jere Date: Fri, 19 Feb 2021 15:04:06 -0600 Subject: ignore real-time signals by default, unless explicitly set --- dwmblocks.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dwmblocks.c') 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) -- cgit v1.2.3-13-gbd6f