diff options
| author | uint23 <72694427+uint23@users.noreply.github.com> | 2025-05-17 21:37:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 21:37:56 +0100 |
| commit | 919ec209e76f947b16cbba8ae25c84679e1a2227 (patch) | |
| tree | bbd3673333803ca6f13e50ea025f2935c72e8d57 /src | |
| parent | d2b05329c73d035d7e8b2cd5134e096d53b13efd (diff) | |
| parent | 4730937f2d00844d173cec3bcaa0c0d69c1a4349 (diff) | |
Merge pull request #18 from bbergeron0/main
Prevent child processes from becoming zombies
Diffstat (limited to 'src')
| -rw-r--r-- | src/sxwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |
