mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-27 09:35:58 +02:00
* 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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user