diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-04-26 18:32:16 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-04-26 18:32:16 +0000 |
commit | 40e006ab62e89da4ecb65386d01cc0bb43ec086d (patch) | |
tree | dbac840f5f98f4d56abe164c401dcdae09270de6 /proc/wait.c | |
parent | 8296bd51408a563919bae3913687a7435e8b1b60 (diff) |
(S_proc_wait): Use `waiter_cares', not `waiting_parent_cares' in
zombie check.
Diffstat (limited to 'proc/wait.c')
-rw-r--r-- | proc/wait.c | 3 |
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)); |