Pass the environment for a child process through the server instead of
relying on the Unix environment.
diff --git a/server/trace.c b/server/trace.c
index 0f293e4..f9445bc 100644
--- a/server/trace.c
+++ b/server/trace.c
@@ -423,6 +423,9 @@
fprintf( stderr, " hstderr=%p,", req->hstderr );
fprintf( stderr, " info=" );
dump_varargs_startup_info( cur_size );
+ fputc( ',', stderr );
+ fprintf( stderr, " env=" );
+ dump_varargs_unicode_str( cur_size );
}
static void dump_new_process_reply( const struct new_process_reply *req )
@@ -489,6 +492,9 @@
{
fprintf( stderr, " info=" );
dump_varargs_startup_info( cur_size );
+ fputc( ',', stderr );
+ fprintf( stderr, " env=" );
+ dump_varargs_unicode_str( cur_size );
}
static void dump_init_process_done_request( const struct init_process_done_request *req )