summaryrefslogtreecommitdiff
path: root/proc/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/wait.c')
-rw-r--r--proc/wait.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc/wait.c b/proc/wait.c
index 18ea769e..fb53321d 100644
--- a/proc/wait.c
+++ b/proc/wait.c
@@ -174,7 +174,8 @@ S_proc_wait (struct proc *p,
for (z = zombie_list, prevz = 0; z; prevz = z, z = z->next)
{
- if (z->parent == p && waiting_parent_cares (p, z->pid, z->pgrp))
+ if (z->parent == p && waiter_cares (pid, p->p_pgrp->pg_pgid,
+ z->pid, z->pgrp))
{
*status = z->exit_status;
bzero (ru, sizeof (struct rusage));