From a0c0878805a14f985682626c1379941d99b75159 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 Jun 2011 22:45:45 +0200 Subject: [PATCH] server: Allow creating a process without any parent or startup info. --- server/process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/process.c b/server/process.c index f5430c8f52f..c88c89bdf2c 100644 --- a/server/process.c +++ b/server/process.c @@ -886,6 +886,12 @@ DECL_HANDLER(new_process) return; } + if (!req->info_size) /* create an orphaned process */ + { + create_process( socket_fd, NULL, 0 ); + return; + } + /* build the startup info for a new process */ if (!(info = alloc_object( &startup_info_ops ))) return; info->exe_file = NULL;