diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:17:41 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:17:41 +0000 |
commit | c33cf580aeac46f8e32831c30e6970f5e4dd8232 (patch) | |
tree | a3bd7826cbc8f245aff8bd11cdb6d3ab20d70f35 /init | |
parent | 50311f55c8eafa2dd5e5939ae4e5d1c183958e33 (diff) |
Sat Mar 6 17:13:48 1999 Thomas Bushnell, BSG <tb@mit.edu>
* init.c (do_mach_notify_dead_name): Deallocate the extra
reference to NAME that the notification carries.
Diffstat (limited to 'init')
-rw-r--r-- | init/ChangeLog | 5 | ||||
-rw-r--r-- | init/init.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/init/ChangeLog b/init/ChangeLog index 3c077cd6..f95a1fad 100644 --- a/init/ChangeLog +++ b/init/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 6 17:13:48 1999 Thomas Bushnell, BSG <tb@mit.edu> + + * init.c (do_mach_notify_dead_name): Deallocate the extra + reference to NAME that the notification carries. + Tue Feb 16 18:54:33 1999 Thomas Bushnell, BSG <tb@mit.edu> * init.c (shutdown_terminal): Revoke access to the terminal from diff --git a/init/init.c b/init/init.c index 133d44f1..7d2c3111 100644 --- a/init/init.c +++ b/init/init.c @@ -1583,6 +1583,9 @@ do_mach_notify_dead_name (mach_port_t notify, struct ntfy_task *nt, *pnt; struct ess_task *et; + /* Deallocate the extra reference the notification carries. */ + mach_port_deallocate (mach_task_self (), name); + for (et = ess_tasks; et != NULL; et = et->next) if (et->task_port == name) /* An essential task has died. */ @@ -1601,8 +1604,10 @@ do_mach_notify_dead_name (mach_port_t notify, else ntfy_tasks = nt->next; free (nt); + return 0; } + return 0; } |