diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-07-22 19:08:42 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-07-22 19:08:42 +0000 |
commit | c4c0b23a31082ed180512f238a155d348c0b477e (patch) | |
tree | a8b99588617d7136bea809661effcf9202ba050b /proc | |
parent | 0d090ef260d70d48ffbfec618e5e5454ea7badfb (diff) |
(zombie_check_pid): Examine Z->pgrp too.
Diffstat (limited to 'proc')
-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 fb53321d..46f240af 100644 --- a/proc/wait.c +++ b/proc/wait.c @@ -321,7 +321,8 @@ zombie_check_pid (pid_t pid) { struct zombie *z; for (z = zombie_list; z; z = z->next) - if (z->pid == pid || -z->pid == pid) + if (z->pid == pid || -z->pid == pid + || z->pgrp == pid || -z->pgrp == pgrp) return 1; return 0; } |