summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/jobs.c b/jobs.c
index 3de0f4cf..24d98af5 100644
--- a/jobs.c
+++ b/jobs.c
@@ -840,6 +840,11 @@ cleanup_dead_jobs ()
if (jobs[i] && DEADJOB (i) && IS_NOTIFIED (i))
delete_job (i, 0);
}
+
+#if defined (COPROCESS_SUPPORT)
+ coproc_reap ();
+#endif
+
UNQUEUE_SIGCHLD(os);
}
@@ -3081,7 +3086,7 @@ waitchld (wpid, block)
child = find_process (pid, 1, &job); /* want living procs only */
#if defined (COPROCESS_SUPPORT)
- coproc_pidchk (pid);
+ coproc_pidchk (pid, status);
#endif
/* It is not an error to have a child terminate that we did