diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/timeout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c index 895d72038..2d6dad8fb 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -365,7 +365,8 @@ main (int argc, char **argv) alarm (timeout); - while ((wait_result = wait (&status)) < 0 && errno == EINTR) + while ((wait_result = waitpid (monitored_pid, &status, 0)) < 0 + && errno == EINTR) continue; if (wait_result < 0) |