summaryrefslogtreecommitdiff
path: root/xinit.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2022-12-04 12:04:18 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2022-12-04 12:04:18 +0100
commit6b3955f66df30c4d7f3ec954629a868e92ff7e67 (patch)
tree5e35d21d05e846f9891916f177c2a1d0ae8d0c9f /xinit.c
parentd0ecfef28c08483e918c7f758a5f132071442ee0 (diff)
parentf9786fb5a7e526035699f3d4d6661468ab20e689 (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'xinit.c')
-rw-r--r--xinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xinit.c b/xinit.c
index 06c92b2..19022c1 100644
--- a/xinit.c
+++ b/xinit.c
@@ -263,7 +263,6 @@ main(int argc, char *argv[])
/*
* Start the server and client.
*/
- signal(SIGCHLD, SIG_DFL); /* Insurance */
/* Let those signal interrupt the wait() call in the main loop */
memset(&sa, 0, sizeof sa);
@@ -284,6 +283,7 @@ main(int argc, char *argv[])
sigaction(SIGALRM, &si, NULL);
sigaction(SIGUSR1, &si, NULL);
+ sigaction(SIGCHLD, &si, NULL);
#ifdef __APPLE__
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060