diff options
Diffstat (limited to 'rvnit.c')
-rw-r--r-- | rvnit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c index 6cdf946..6e8f99a 100644 --- a/rvnit.c +++ b/rvnit.c @@ -401,6 +401,8 @@ timedwait(int *wstatus, int secs) sigemptyset(&childset); sigaddset(&childset, SIGCHLD); + /* we block SIGCHLD here, so that we do not lose the signal + possibly sent between waitpid(-1) and sigtimedwait */ sigprocmask(SIG_BLOCK, &childset, 0); pid_t pid; |