forked from OSchip/llvm-project
Call CreateProcess with bInheritHandles = TRUE.
Makes llvmc show error messages printed by child processes when run from the Cygwin/MSYS shell. Since ExecuteAndWait does not return until the child program has finished execution, this change should be harmless. llvm-svn: 69082
This commit is contained in:
parent
3a62efb732
commit
60cde5ba7c
|
@ -226,7 +226,7 @@ Program::ExecuteAndWait(const Path& path,
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
BOOL rc = CreateProcess(path.c_str(), command, NULL, NULL, FALSE, 0,
|
BOOL rc = CreateProcess(path.c_str(), command, NULL, NULL, TRUE, 0,
|
||||||
envblock, NULL, &si, &pi);
|
envblock, NULL, &si, &pi);
|
||||||
DWORD err = GetLastError();
|
DWORD err = GetLastError();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue