diff options
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -257,7 +257,13 @@ reap_children (block, err) pid = wait (&status); if (pid < 0) - pfatal_with_name ("wait"); + { +#ifdef EINTR + if (errno == EINTR) + continue; +#endif + pfatal_with_name ("wait"); + } else if (pid == 0) /* No local children. */ break; |