From 12bf18b6b642d01ca2292339475b853ed06aaaac Mon Sep 17 00:00:00 2001 From: LRN Date: Mon, 23 Sep 2013 12:43:04 +0000 Subject: 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) --- src/util/os_priority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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)) -- cgit v1.2.3