summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/job.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index ba71b154a68..329ff3037c2 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: job.c,v 1.159 2020/01/16 16:07:18 espie Exp $ */
+/* $OpenBSD: job.c,v 1.160 2020/01/29 17:06:51 espie Exp $ */
/* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */
/*
@@ -757,11 +757,14 @@ reap_jobs(void)
Job *job;
while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0) {
+ if (WIFSTOPPED(status))
+ continue;
reaped = true;
job = reap_finished_job(pid);
if (job == NULL) {
- Punt("Child (%ld) not in table?", (long)pid);
+ Punt("Child (%ld) with status %d not in table?",
+ (long)pid, status);
} else {
handle_job_status(job, status);
determine_job_next_step(job);