diff options
-rw-r--r-- | proc/main.c | 8 |
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); } |