diff options
author | Roland McGrath <roland@gnu.org> | 1999-06-05 21:36:49 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-06-05 21:36:49 +0000 |
commit | aed7aaa19467e6bdaca0f7b7def60ff02972ec45 (patch) | |
tree | c9be7316b8e3766c5ebea6e719971b396fe8675e /proc | |
parent | ad3265017080f9f0755ad6c42f3e5b23986fb5cb (diff) |
1999-06-05 Roland McGrath <roland@baalperazim.frob.com>
* mgt.c (create_startup_proc): Don't call add_proc_to_hash here.
* main.c (main): Do it here instead, after we have the task port.
Diffstat (limited to 'proc')
-rw-r--r-- | proc/main.c | 2 | ||||
-rw-r--r-- | proc/mgt.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/proc/main.c b/proc/main.c index 252edd1c..f036fbf3 100644 --- a/proc/main.c +++ b/proc/main.c @@ -100,6 +100,8 @@ main (int argc, char **argv, char **envp) _hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver); mach_port_deallocate (mach_task_self (), boot); + add_proc_to_hash (startup_proc); /* Now that we have the task port. */ + /* Set our own argv and envp locations. */ self_proc->p_argv = (int) argv; self_proc->p_envp = (int) envp; @@ -566,7 +566,6 @@ create_startup_proc (void) strcpy (p->p_login->l_name, "root"); boot_setsid (p); - add_proc_to_hash (p); return p; } |