summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-12 06:22:26 +0000
committerRoland McGrath <roland@gnu.org>1994-05-12 06:22:26 +0000
commit4032a669f070e93f53ee14b855cb85a2a88db51c (patch)
tree8d9812a77f24ec32f767e79a14ba8c79c8cb972e /init/init.c
parentb36817d2704a0019eaf9ca492a7528ee4baec702 (diff)
Formerly init.c.~20~
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/init/init.c b/init/init.c
index c17e78f0..dfa01fa6 100644
--- a/init/init.c
+++ b/init/init.c
@@ -342,7 +342,7 @@ main (int argc, char **argv, char **envp)
global_argv = argv;
/* Fetch a port to the bootstrap filesystem, the host priv and
- master device ports, and the console */
+ master device ports, and the console. */
if (task_get_bootstrap_port (mach_task_self (), &bootport)
|| fsys_getpriv (bootport, &host_priv, &device_master, &fstask)
|| device_open (device_master, D_WRITE, "console", &consdev))
@@ -354,7 +354,7 @@ main (int argc, char **argv, char **envp)
stdout = stderr = stdin;
setbuf (stdout, NULL);
- /* At this point we can use assert to check for errors. */
+ /* At this point we can use assert to check for errors. */
err = mach_port_allocate (mach_task_self (),
MACH_PORT_RIGHT_RECEIVE, &startup);
assert (!err);
@@ -362,7 +362,7 @@ main (int argc, char **argv, char **envp)
MACH_MSG_TYPE_MAKE_SEND);
assert (!err);
- /* Set up the set of ports we will pass to the programs we exec. */
+ /* Set up the set of ports we will pass to the programs we exec. */
for (i = 0; i < INIT_PORT_MAX; i++)
switch (i)
{
@@ -388,7 +388,7 @@ main (int argc, char **argv, char **envp)
run ("/hurd/auth", default_ports, &authtask);
/* Wait for messages. When both auth and proc have started, we
- run launch_system which does the rest of the boot. */
+ run launch_system which does the rest of the boot. */
while (1)
{
err = mach_msg_server (demuxer, 0, startup);
@@ -419,11 +419,16 @@ launch_system (void)
/* Give the library our auth and proc server ports. */
_hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver);
_hurd_port_set (&_hurd_ports[INIT_PORT_PROC], procserver);
- _hurd_proc_init (global_argv);
+
+ /* Do NOT run _hurd_proc_init! That will start signals, which we do not
+ want. We listen to our own message port. Tell the proc server where
+ our args and environment are. */
+ proc_setprocargs (procserver,
+ (vm_address_t) global_argv, (vm_address_t) environ);
default_ports[INIT_PORT_AUTH] = authserver;
- /* Tell the proc server our msgport */
+ /* Tell the proc server our msgport. */
proc_setmsgport (procserver, startup, &old);
if (old)
mach_port_deallocate (mach_task_self (), old);