summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-06-30 18:42:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-06-30 18:42:53 +0000
commit382122a37633d0c5a8923db401772d66b04e2432 (patch)
tree808fa0ba518a15894261d56df5b25c000683cf35
parent6abc828bcf17df4dc731b2ef505f80b94da42e71 (diff)
Formerly mgt.c.~14~
-rw-r--r--proc/mgt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 250cfae0..b914c761 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -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)