diff options
-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; } |