From c1ff32f912be431a4481a63510f5fc87f92514b2 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Wed, 4 Aug 2021 01:58:40 +0530 Subject: [PATCH] Specifically set sigchld handler to SIG_IGN See https://pubs.opengroup.org/onlinepubs/9699919799/functions/_Exit.html#tag_16_01_03_01 --- dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwmblocks.c b/dwmblocks.c index d58450b..876099f 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -108,7 +108,7 @@ setupsignals() /* to prevent forked children from becoming zombies */ sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART; // sigemptyset(&sa.sa_mask); - sa.sa_handler = SIG_DFL; + sa.sa_handler = SIG_IGN; sigaction(SIGCHLD, &sa, NULL); /* to handle signals generated by dwm on click events */