From ee4ca6956fe46c3053257626d99fa056c11d116a Mon Sep 17 00:00:00 2001 From: Peter Oberndorfer Date: Mon, 10 Oct 2011 20:17:40 +0200 Subject: [PATCH] Revert "do not inherit handles into child processes" This reverts commit d61e9f6c543216d0dfdca75da307769bc9a981b0. Inheriting handles into the child process is necessary. Otherwise redirection of stdout/stdin/stderr does not work. Signed-off-by: Peter Oberndorfer --- compat/mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index 84d54c2..288e152 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -666,7 +666,7 @@ static pid_t mingw_spawnve_cwd(const char *cmd, const char **argv, char **env, } memset(&pi, 0, sizeof(pi)); - ret = CreateProcess(cmd, args.buf, NULL, NULL, FALSE, flags, + ret = CreateProcess(cmd, args.buf, NULL, NULL, TRUE, flags, env ? envblk.buf : NULL, working_directory, &si, &pi); if (env) -- 2.11.4.GIT