summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-19 14:24:40 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-19 14:24:40 +0000
commit4a70855108c2575ffed273cd06cbf6e07c28bfd9 (patch)
tree9561d050075b5627aee4b8bec7b4881bffb90f30
parentbce616bbfd0b7af9c94f94e321e616c3d9e39888 (diff)
Formerly mgt.c.~17~
-rw-r--r--proc/mgt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index e168cdfe..9297859d 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -177,13 +177,14 @@ S_proc_child (struct proc *parentp,
leave_pgrp (childp);
childp->p_pgrp = parentp->p_pgrp;
join_pgrp (childp);
+ /* Not necessary to call newids ourself because join_pgrp does
+ it for us. */
}
-
- childp->p_parentset = 1;
- if (childp->p_msgport)
+ else if (childp->p_msgport != MACH_PORT_NULL)
nowait_proc_newids (childp->p_msgport, childp->p_task,
childp->p_parent->p_pid, childp->p_pgrp->pg_pgid,
!childp->p_pgrp->pg_orphcnt);
+ childp->p_parentset = 1;
return 0;
}