From 8f1629f0ad72437c034e06b4a2e04bf2e157c0bd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 16 Jul 2011 05:57:19 -0700 Subject: * src/timeout.c (main): Use waitpid, not wait (Bug#9098). Reported by Andreas Schwab. * src/timeout.c (SA_RESTART): Define to 0 if not defined. --- src/timeout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2