diff options
author | Roland McGrath <roland@gnu.org> | 1994-08-19 09:02:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-08-19 09:02:01 +0000 |
commit | d77389f10c18bcd473ec941c26152bd12ceb5859 (patch) | |
tree | 0e324d785c272f0278c24fa95b7cedcd332d93ba /proc | |
parent | 3e9dc8f681533be9d3430328e24b0a73fe846e55 (diff) |
Formerly pgrp.c.~9~
Diffstat (limited to 'proc')
-rw-r--r-- | proc/pgrp.c | 9 |
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); } |