diff options
-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; } |