summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index dd779df..dcf8dbf 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -17,6 +17,7 @@
#include <err.h>
#include <stdio.h>
#include <limits.h>
+#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
@@ -1230,6 +1231,8 @@ void setup(void)
evtable[MotionNotify] = hdl_motion;
evtable[PropertyNotify] = hdl_root_property;
scan_existing_windows();
+
+ signal(SIGCHLD, SIG_IGN); /* Prevent child processes from becoming zombies */
}
void setup_atoms(void)