aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2023-06-15 15:42:54 -0500
committerLeonardo Hernández <leohdz172@proton.me>2023-06-16 00:24:17 -0600
commitdf11b7a7864b416bba52e00d6ad7997d9a7c19b0 (patch)
tree9aed8dabe03a933fbd382431d14d08b4e8d398f8 /dwl.c
parent5215712cabce273f76a5381de244c58a7d1f54f9 (diff)
fix startup_cmd SIGCHLD handler
Ignored handlers are not reset by exec() calls
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index d741cbd..19adafe 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1963,6 +1963,8 @@ run(char *startup_cmd)
if ((child_pid = fork()) < 0)
die("startup: fork:");
if (child_pid == 0) {
+ sa.sa_handler = SIG_DFL;
+ sigaction(SIGCHLD, &sa, NULL);
dup2(piperw[0], STDIN_FILENO);
close(piperw[0]);
close(piperw[1]);