summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
Diffstat (limited to 'proc')
-rw-r--r--proc/pgrp.c9
1 files 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);
}