summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FUNDING.yml3
-rw-r--r--dwmblocks.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/FUNDING.yml b/FUNDING.yml
new file mode 100644
index 0000000..f8e6076
--- /dev/null
+++ b/FUNDING.yml
@@ -0,0 +1,3 @@
+github: lukesmithxyz
+custom: ["https://lukesmith.xyz/donate", "https://paypal.me/lukemsmith", "https://lukesmith.xyz/crypto"]
+patreon: lukesmith
diff --git a/dwmblocks.c b/dwmblocks.c
index 391ee0d..d135a7d 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -122,7 +122,11 @@ void setupsignals()
sa.sa_sigaction = buttonhandler;
sa.sa_flags = SA_SIGINFO;
sigaction(SIGUSR1, &sa, NULL);
- signal(SIGCHLD, SIG_IGN);
+ struct sigaction sigchld_action = {
+ .sa_handler = SIG_DFL,
+ .sa_flags = SA_NOCLDWAIT
+ };
+ sigaction(SIGCHLD, &sigchld_action, NULL);
}
#endif
Software created with 💖