From: LRN Date: Mon, 23 Sep 2013 12:43:04 +0000 (+0000) Subject: Change console inheritance on W32 X-Git-Tag: initial-import-from-subversion-38251~7156 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12bf18b6b642d01ca2292339475b853ed06aaaac;p=oweals%2Fgnunet.git Change console inheritance on W32 This allows std handles to be properly inherited in case when they are console handles (DETACHED_PROCESS completely forbids access to the console and overrides anything) --- diff --git a/src/util/os_priority.c b/src/util/os_priority.c index c5bb397c1..f019bd605 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -1053,7 +1053,7 @@ start_process (int pipe_control, } bresult = CreateProcessW (wpath, wcmd, NULL, NULL, GNUNET_YES, - DETACHED_PROCESS | CREATE_SUSPENDED, env_block, NULL, &start, &proc); + CREATE_NO_WINDOW | CREATE_SUSPENDED, env_block, NULL, &start, &proc); error_code = GetLastError (); if ((NULL == pipe_stdin) && (stdih))