Merge branch 'master' of https://github.com/noocsharp/dwmblocks into noocsharp-master

This commit is contained in:
Luke Smith 2021-02-19 16:49:52 -05:00
commit 2569bdb430
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 5 additions and 5 deletions

View file

@ -31,11 +31,7 @@ but is faster. Just add 34 to your typical signal number.
My volume module *never* updates on its own, instead I have this command run My volume module *never* updates on its own, instead I have this command run
along side my volume shortcuts in dwm to only update it when relevant. along side my volume shortcuts in dwm to only update it when relevant.
Note that if you signal an unexpected signal to dwmblocks, it will probably Note that all modules must have different signal numbers.
crash. So if you disable a module, remember to also disable any cronjobs or
other scripts that might signal to that module.
Note also that all modules must have different signal numbers.
# Clickable modules # Clickable modules

View file

@ -111,6 +111,10 @@ void getsigcmds(int signal)
void setupsignals() void setupsignals()
{ {
struct sigaction sa; struct sigaction sa;
for(int i = SIGRTMIN; i <= SIGRTMAX; i++)
signal(i, SIG_IGN);
for(int i = 0; i < LENGTH(blocks); i++) for(int i = 0; i < LENGTH(blocks); i++)
{ {
if (blocks[i].signal > 0) if (blocks[i].signal > 0)