summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-05 21:36:49 +0000
committerRoland McGrath <roland@gnu.org>1999-06-05 21:36:49 +0000
commitaed7aaa19467e6bdaca0f7b7def60ff02972ec45 (patch)
treec9be7316b8e3766c5ebea6e719971b396fe8675e /proc
parentad3265017080f9f0755ad6c42f3e5b23986fb5cb (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.c2
-rw-r--r--proc/mgt.c1
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;
diff --git a/proc/mgt.c b/proc/mgt.c
index 79bb12c2..bcf18243 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -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;
}