aboutsummaryrefslogtreecommitdiff
path: root/proc/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/notify.c')
-rw-r--r--proc/notify.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/proc/notify.c b/proc/notify.c
index 9d48d945..5a112b07 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.
@@ -44,6 +44,7 @@ do_mach_notify_dead_name (mach_port_t notify,
if (notify == generic_port)
{
check_dead_execdata_notify (deadport);
+ mach_port_deallocate (mach_task_self (), deadport);
return 0;
}
@@ -52,16 +53,11 @@ do_mach_notify_dead_name (mach_port_t notify,
if (!p)
return EOPNOTSUPP;
- if (p->p_msgport == deadport)
- {
- message_port_dead (p);
- ports_port_deref (p);
- return 0;
- }
- else if (p->p_task == deadport)
+ if (p->p_task == deadport)
{
process_has_exited (p);
ports_port_deref (p);
+ mach_port_deallocate (mach_task_self (), deadport);
return 0;
}
else