diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-04-07 00:36:35 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-04-07 00:36:35 +0000 |
commit | 8b8ead1e66117144f29b3e3a24b41d8097ddddd0 (patch) | |
tree | ce8d74302fe90eb77c501337700acece9cbc7505 /proc/pgrp.c | |
parent | f70216ec936f9ecdf285925dfbf079b1d555b1f7 (diff) |
Formerly pgrp.c.~4~
Diffstat (limited to 'proc/pgrp.c')
-rw-r--r-- | proc/pgrp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/proc/pgrp.c b/proc/pgrp.c index ea64ede7..ea500fee 100644 --- a/proc/pgrp.c +++ b/proc/pgrp.c @@ -371,10 +371,7 @@ join_pgrp (struct proc *p) pg->pg_plist->p_gprevp = &p->p_gnext; pg->pg_plist = p; - /* Processes 0 and 1 have no parent; they count as orphaned - processes always. */ - if (p->p_parent - && p->p_parent->p_pgrp != pg + if (p->p_parent->p_pgrp != pg && p->p_parent->p_pgrp->pg_session == pg->pg_session) pg->pg_orphcnt++; } |