From 3cbc9f6caa9361b1bb2bdfc6ebd9993ff140d2ee Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 9 Mar 1999 20:39:31 +0000 Subject: Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG * notify.c (do_mach_notify_dead_name): Don't check against P->p_msgport anymore. * msg.c (message_port_dead): Delete function. (S_proc_setmsgport): Don't request a dead-name notification anymore. (S_proc_getmsgport): Check to see if P->p_msgport is dead before returning it. * mgt.c (S_proc_reassign): Only use mach_port_deallocate to release P->msgport. (process_has_exited): Likewise. * proc.h (message_port_dead): Delete prototype. --- proc/mgt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc/mgt.c') 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); -- cgit v1.2.3