From 4a70855108c2575ffed273cd06cbf6e07c28bfd9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 19 Aug 1994 14:24:40 +0000 Subject: Formerly mgt.c.~17~ --- proc/mgt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proc/mgt.c') 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; } -- cgit v1.2.3