diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:18:34 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:18:34 +0000 |
commit | ea0650c4cf72dcfc6322c381effd9650b3890fd7 (patch) | |
tree | c22594747f05dd122d80fa41455ac72d59cf33ad /proc/notify.c | |
parent | 67ce225317bb58b710659999ffe84977cf6dffc4 (diff) | |
download | hurd-ea0650c4cf72dcfc6322c381effd9650b3890fd7.tar.gz hurd-ea0650c4cf72dcfc6322c381effd9650b3890fd7.tar.bz2 hurd-ea0650c4cf72dcfc6322c381effd9650b3890fd7.zip |
1999-03-06 Mark Kettenis <kettenis@gnu.org>
* notify.c (do_mach_notify_dead_name): Deallocate reference to
DEADPORT.
Diffstat (limited to 'proc/notify.c')
-rw-r--r-- | proc/notify.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/proc/notify.c b/proc/notify.c index 9d48d945..7ab8d56b 100644 --- a/proc/notify.c +++ b/proc/notify.c @@ -1,5 +1,5 @@ /* Handle notifications - Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994, 1996, 1999 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -41,6 +41,9 @@ do_mach_notify_dead_name (mach_port_t notify, { struct proc *p; + /* Drop gratuitous extra reference that the notification creates. */ + mach_port_deallocate (mach_task_self (), deadport); + if (notify == generic_port) { check_dead_execdata_notify (deadport); @@ -50,7 +53,9 @@ do_mach_notify_dead_name (mach_port_t notify, p = ports_lookup_port (proc_bucket, notify, proc_class); if (!p) - return EOPNOTSUPP; + { + return EOPNOTSUPP; + } if (p->p_msgport == deadport) { |