diff options
author | nikolaus <nikolaus@fishbox.fritz.box> | 2022-09-07 13:59:22 +0200 |
---|---|---|
committer | nikolaus <nikolaus@fishbox.fritz.box> | 2022-09-07 13:59:22 +0200 |
commit | 566442a0c023b2f07b9ade411d54870998564641 (patch) | |
tree | dc6a725b5334f41089b9519430bd9d90e0e1c7ee /dwmblocks.c | |
parent | a933ce0d6109524b393feb3e7156cbf0de88b42c (diff) |
Diffstat (limited to 'dwmblocks.c')
-rwxr-xr-x[-rw-r--r--] | dwmblocks.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index befd252..08f0b59 100644..100755 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -8,7 +8,7 @@ #endif #ifdef __OpenBSD__ #define SIGPLUS SIGUSR1+1 -#define SIGMINUS SIGUSR1-1 +#define SIGMINUS SIGINFO #else #define SIGPLUS SIGRTMIN #define SIGMINUS SIGRTMIN @@ -104,8 +104,12 @@ void setupsignals() { #ifndef __OpenBSD__ /* initialize all real time signals with dummy handler */ - for (int i = SIGRTMIN; i <= SIGRTMAX; i++) - signal(i, dummysighandler); +/* for (int i = SIGRTMIN; i <= SIGRTMAX; i++) */ +/* signal(i, dummysighandler); */ + for (unsigned int i = 0; i < LENGTH(blocks); i++) { + if (blocks[i].signal > 0) + signal(SIGRTMIN+blocks[i].signal, sighandler); + } #endif for (unsigned int i = 0; i < LENGTH(blocks); i++) { |