diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-09 18:14:58 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-09 18:14:58 +0000 |
commit | 120dee489f4eefe691133e221172e1ef67fe91a1 (patch) | |
tree | 961f78077bfec981005249560fd8041799e72cc5 /proc/mgt.c | |
parent | e62a16ff75853c03be2daafd1385fafcd63a470c (diff) | |
download | hurd-120dee489f4eefe691133e221172e1ef67fe91a1.tar.gz hurd-120dee489f4eefe691133e221172e1ef67fe91a1.tar.bz2 hurd-120dee489f4eefe691133e221172e1ef67fe91a1.zip |
Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG <tb@mit.edu>
* mgt.c (S_proc_reassign): It's not necessary to re-request the
task-death notification; we've moved both the task right and the
proc port that gets the notification, so delete that.
* mgt.c (S_proc_reassign): Use mach_port_destroy instead of
mach_port_deallocate to release P->p_msgport, for the same reasons
as the changes below.
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -225,19 +225,11 @@ S_proc_reassign (struct proc *p, /* For security, we need use the request port from STUBP */ ports_transfer_right (p, stubp); - /* Redirect the task-death notification to the new receive right. */ - mach_port_request_notification (mach_task_self (), p->p_task, - MACH_NOTIFY_DEAD_NAME, 1, - p->p_pi.port_right, - MACH_MSG_TYPE_MAKE_SEND_ONCE, &foo); - if (foo) - mach_port_deallocate (mach_task_self (), foo); - /* Enqueued messages might refer to the old task port, so destroy them. */ if (p->p_msgport != MACH_PORT_NULL) { - mach_port_deallocate (mach_task_self (), p->p_msgport); + mach_port_destroy (mach_task_self (), p->p_msgport); p->p_msgport = MACH_PORT_NULL; p->p_deadmsg = 1; } |