From 40e006ab62e89da4ecb65386d01cc0bb43ec086d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 26 Apr 1995 18:32:16 +0000 Subject: (S_proc_wait): Use `waiter_cares', not `waiting_parent_cares' in zombie check. --- proc/wait.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3