diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-12 20:28:52 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-12 20:28:52 +0000 |
commit | 86e760a779b29116426a2d5fd38a955d47cfb046 (patch) | |
tree | 1b1206d7824a20af74df3c53a3b1245ce43568b9 /proc/mgt.c | |
parent | c41dfc0e9447aa0e7f1e498ef3f8a76f34d905f5 (diff) | |
download | hurd-86e760a779b29116426a2d5fd38a955d47cfb046.tar.gz hurd-86e760a779b29116426a2d5fd38a955d47cfb046.tar.bz2 hurd-86e760a779b29116426a2d5fd38a955d47cfb046.zip |
1999-03-11 Mark Kettenis <kettenis@gnu.org>
* notify.c (do_mach_notify_dead_name): Remove unnecessary braces.
* msg.c (S_proc_setmsgport): Remove unused variable FOO.
(S_proc_getmsgport): Only check if the message port is still alive
if it is not MACH_PORT_NULL. Use mach_port_type instead of
mach_port_get_refs to check if the port is dead.
* mgt.c (S_proc_reassign): Use mach_port_destroy to release the
old task port.
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -219,7 +219,7 @@ S_proc_reassign (struct proc *p, remove_proc_from_hash (p); task_terminate (p->p_task); - mach_port_deallocate (mach_task_self (), p->p_task); + mach_port_destroy (mach_task_self (), p->p_task); p->p_task = stubp->p_task; /* For security, we need use the request port from STUBP */ |