summaryrefslogtreecommitdiff
path: root/proc/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-12 11:26:51 +0000
committerRoland McGrath <roland@gnu.org>1994-05-12 11:26:51 +0000
commitd65eb8036fa19cbf773d4c50d888da2bda8105d9 (patch)
tree0db8bee9e697287bdc67cfbc0e435274c5e194b9 /proc/main.c
parent7bc97cb54bf9c7322ad35c1db171e99085060af0 (diff)
Formerly main.c.~8~
Diffstat (limited to 'proc/main.c')
-rw-r--r--proc/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/proc/main.c b/proc/main.c
index 634171b3..67c6b78a 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -46,8 +46,8 @@ message_demuxer (mach_msg_header_t *inp,
|| proc_excrepl_server (inp, outp));
}
-void
-main ()
+int
+main (int argc, char **argv, char **envp)
{
mach_port_t boot;
mach_port_t authhandle;
@@ -77,6 +77,10 @@ main ()
add_proc_to_hash (self_proc);
add_proc_to_hash (startup_proc);
+ /* Set our own argv and envp locations. */
+ self_proc->p_argv = (int) argv;
+ self_proc->p_envp = (int) envp;
+
while (1)
mach_msg_server (message_demuxer, 0, request_portset);
}