diff options
author | Roland McGrath <roland@gnu.org> | 1994-09-29 22:17:57 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-09-29 22:17:57 +0000 |
commit | efe02f8bb6201ad8e4dcea1def0220bd77c41479 (patch) | |
tree | 2c967a68b10b46131d11400fc7640f22c1c2db23 | |
parent | 1c052b1a67950b466ea1e82144f6b900f309eb0e (diff) |
Formerly main.c.~23~
-rw-r--r-- | ufs/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -23,6 +23,7 @@ #include <hurd/startup.h> #include <fcntl.h> #include <unistd.h> +#include <stdlib.h> char *ufs_version = "0.0 pre-alpha"; @@ -102,10 +103,10 @@ main (int argc, char **argv) mutex_init (&printf_lock); /* XXX */ - task_get_bootstrap_port (mach_task_self (), &bootstrap); - - if (bootstrap) + if (getpid () > 0) { + /* We are in a normal Hurd universe, started as a translator. */ + devname = trans_parse_args (argc, argv); { @@ -120,10 +121,13 @@ main (int argc, char **argv) } else { + /* We are the bootstrap filesystem. */ devname = diskfs_parse_bootargs (argc, argv); compat_mode = COMPAT_GNU; } + task_get_bootstrap_port (mach_task_self (), &bootstrap); + /* Initialize the diskfs library. This must come before any other diskfs call. */ diskfs_init_diskfs (); |