summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index f97c3984..badad6b6 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -229,7 +229,7 @@ S_proc_reassign (struct proc *p,
destroy them. */
if (p->p_msgport != MACH_PORT_NULL)
{
- mach_port_destroy (mach_task_self (), p->p_msgport);
+ mach_port_deallocate (mach_task_self (), p->p_msgport);
p->p_msgport = MACH_PORT_NULL;
p->p_deadmsg = 1;
}
@@ -644,7 +644,7 @@ process_has_exited (struct proc *p)
alert_parent (p);
if (p->p_msgport)
- mach_port_destroy (mach_task_self (), p->p_msgport);
+ mach_port_deallocate (mach_task_self (), p->p_msgport);
p->p_msgport = MACH_PORT_NULL;
prociterate ((void (*) (struct proc *, void *))check_message_dying, p);