summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--config.h1
-rw-r--r--dwmblocks.c4
3 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 2b40431..7d21e30 100644
--- a/README.md
+++ b/README.md
@@ -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
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
-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.
+Note that all modules must have different signal numbers.
# Clickable modules
diff --git a/config.h b/config.h
index eaf2dbe..ec4ff6e 100644
--- a/config.h
+++ b/config.h
@@ -7,7 +7,6 @@ static const Block blocks[] = {
{"", "sb-music", 0, 11},
{"", "sb-pacpackages", 0, 8},
{"", "sb-news", 0, 6},
- /* {"", "sb-crypto", 0, 13}, */
/* {"", "sb-price lbc \"LBRY Token\" 📚", 9000, 22}, */
/* {"", "sb-price bat \"Basic Attention Token\" 🦁", 9000, 20}, */
/* {"", "sb-price link \"Chainlink\" 🔗", 300, 25}, */
diff --git a/dwmblocks.c b/dwmblocks.c
index 12648ef..5021af1 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -117,6 +117,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)
Software created with 💖