summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/job.c b/job.c
index f1c919d..31178ea 100644
--- a/job.c
+++ b/job.c
@@ -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;