diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-06-30 18:42:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-06-30 18:42:53 +0000 |
commit | 382122a37633d0c5a8923db401772d66b04e2432 (patch) | |
tree | 808fa0ba518a15894261d56df5b25c000683cf35 | |
parent | 6abc828bcf17df4dc731b2ef505f80b94da42e71 (diff) |
Formerly mgt.c.~14~
-rw-r--r-- | proc/mgt.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -172,9 +172,12 @@ S_proc_child (struct proc *parentp, parentp->p_ochild = childp; /* Process group structure. */ - leave_pgrp (childp); - childp->p_pgrp = parentp->p_pgrp; - join_pgrp (childp); + if (childp->p_pgrp != parentp->p_pgrp) + { + leave_pgrp (childp); + childp->p_pgrp = parentp->p_pgrp; + join_pgrp (childp); + } childp->p_parentset = 1; if (childp->p_msgport) |