diff options
author | LRN <lrn1986@gmail.com> | 2013-09-23 12:43:04 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-09-23 12:43:04 +0000 |
commit | 12bf18b6b642d01ca2292339475b853ed06aaaac (patch) | |
tree | 673e94244e602ac743e921903cbefde412636a42 /src/util/os_priority.c | |
parent | 2e47712434355ca79cfb8debc332fa54b7a9255b (diff) | |
download | gnunet-12bf18b6b642d01ca2292339475b853ed06aaaac.tar.gz gnunet-12bf18b6b642d01ca2292339475b853ed06aaaac.zip |
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)
Diffstat (limited to 'src/util/os_priority.c')
-rw-r--r-- | src/util/os_priority.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1053 | } | 1053 | } |
1054 | 1054 | ||
1055 | bresult = CreateProcessW (wpath, wcmd, NULL, NULL, GNUNET_YES, | 1055 | bresult = CreateProcessW (wpath, wcmd, NULL, NULL, GNUNET_YES, |
1056 | DETACHED_PROCESS | CREATE_SUSPENDED, env_block, NULL, &start, &proc); | 1056 | CREATE_NO_WINDOW | CREATE_SUSPENDED, env_block, NULL, &start, &proc); |
1057 | error_code = GetLastError (); | 1057 | error_code = GetLastError (); |
1058 | 1058 | ||
1059 | if ((NULL == pipe_stdin) && (stdih)) | 1059 | if ((NULL == pipe_stdin) && (stdih)) |