summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-09 20:39:31 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-09 20:39:31 +0000
commit3cbc9f6caa9361b1bb2bdfc6ebd9993ff140d2ee (patch)
tree144dfc43bd6a17d11e73de331678047f199fdcbd /proc/mgt.c
parente7968c5ea19d934e596a76ff7c7356d27da64139 (diff)
Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
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);