From d77389f10c18bcd473ec941c26152bd12ceb5859 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 19 Aug 1994 09:02:01 +0000 Subject: Formerly pgrp.c.~9~ --- proc/pgrp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/proc/pgrp.c b/proc/pgrp.c index ee3aad8b..ad74a84d 100644 --- a/proc/pgrp.c +++ b/proc/pgrp.c @@ -360,8 +360,10 @@ leave_pgrp (struct proc *p) { if (ip->p_stopped) dosignal = 1; - nowait_proc_newids (ip->p_msgport, ip->p_task, ip->p_pid, - ip->p_parent->p_pid, 1); + nowait_proc_newids (ip->p_msgport, ip->p_task, + ip->p_parent->p_pid, + ip->p_pid, + 1); } if (dosignal) for (ip = pg->pg_plist; ip; ip = ip->p_gnext) @@ -387,4 +389,7 @@ join_pgrp (struct proc *p) if (p->p_parent->p_pgrp != pg && p->p_parent->p_pgrp->pg_session == pg->pg_session) pg->pg_orphcnt++; + + nowait_proc_newids (p->p_msgport, p->p_task, + p->p_parent->p_pid, pg->pg_pgid, !pg->pg_orphcnt); } -- cgit v1.2.3