diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-18 22:39:37 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-18 22:39:37 +0000 |
commit | 06ad0da69e71fa76f856fc9e5497c4163b0e99f2 (patch) | |
tree | acb3eb1dffa838f8c36d8f30705fa28f5a1f4290 /proc/mgt.c | |
parent | 52cccd25aefe8385dcc3b3700692b8ba8ed5fea3 (diff) | |
download | hurd-06ad0da69e71fa76f856fc9e5497c4163b0e99f2.tar.gz hurd-06ad0da69e71fa76f856fc9e5497c4163b0e99f2.tar.bz2 hurd-06ad0da69e71fa76f856fc9e5497c4163b0e99f2.zip |
*** empty log message ***
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -146,6 +146,8 @@ S_proc_child (struct proc *parentp, if (childp->p_parentset) return EBUSY; + mach_port_deallocate (mach_task_self (), childt); + /* Process identification. Leave p_task and p_pid alone; all the rest comes from the new parent. */ @@ -212,11 +214,13 @@ S_proc_reassign (struct proc *p, if (stubp == p) return EINVAL; + mach_port_deallocate (mach_task_self (), newt); + remove_proc_from_hash (p); task_terminate (p->p_task); mach_port_deallocate (mach_task_self (), p->p_task); - p->p_task = newt; + p->p_task = stubp->p_task; /* For security, we need use the request port from STUBP */ ports_transfer_right (p, stubp); |