summaryrefslogtreecommitdiff
path: root/proc/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-12 08:53:12 +0000
committerRoland McGrath <roland@gnu.org>2000-03-12 08:53:12 +0000
commit4f8655657b7afd3628283be6bcb114806423cd32 (patch)
treeb0d29d25580c8dd9eb117c8a7e4d543f22e04151 /proc/main.c
parent58d9238df8bd21eefc0f9836211a3365ba4d6261 (diff)
2000-03-12 Roland McGrath <roland@baalperazim.frob.com>
* mgt.c (allocate_proc): Don't do mach_port_request_notification here. (proc_death_notify): New function, do it here instead. (complete_proc): Call proc_death_notify. * main.c (main): Call proc_death_notify on STARTUP_PROC after we have set its task port. * proc.h: Declare proc_death_notify.
Diffstat (limited to 'proc/main.c')
-rw-r--r--proc/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc/main.c b/proc/main.c
index ced0e5a7..6d74e1de 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -1,5 +1,5 @@
/* Initialization of the proc server
- Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999 Free Software Foundation
+ Copyright (C) 1993,94,95,96,97,99,2000 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -99,6 +99,7 @@ main (int argc, char **argv, char **envp)
_hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver);
mach_port_deallocate (mach_task_self (), boot);
+ proc_death_notify (startup_proc);
add_proc_to_hash (startup_proc); /* Now that we have the task port. */
/* Set our own argv and envp locations. */