server: Allow creating a process without any parent or startup info.

This commit is contained in:
Alexandre Julliard 2011-06-16 22:45:45 +02:00
parent 17e6d75ed4
commit a0c0878805
1 changed files with 6 additions and 0 deletions

View File

@ -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;