diff options
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++) { |