summaryrefslogtreecommitdiff
path: root/mach-defpager
diff options
context:
space:
mode:
Diffstat (limited to 'mach-defpager')
-rw-r--r--mach-defpager/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mach-defpager/main.c b/mach-defpager/main.c
index e33c2b33..71615c8f 100644
--- a/mach-defpager/main.c
+++ b/mach-defpager/main.c
@@ -104,9 +104,11 @@ main (int argc, char **argv)
exitting, and the child sends that signal after it is set up. */
sigset_t set;
signal (SIGUSR1, nohandler);
+ signal (SIGCHLD, nohandler);
sigemptyset (&set);
sigaddset (&set, SIGUSR1);
- sigprocmask (SIG_BLOCK, &set, 0);
+ sigaddset (&set, SIGCHLD);
+ sigprocmask (SIG_SETMASK, &set, NULL);
switch (fork ())
{
case -1: