diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-14 21:31:36 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-14 21:31:36 +0000 |
commit | 0526653956e924304f4c56ff87f72cecbb49fba2 (patch) | |
tree | 0fd3ac6b4e2b120f7aaef7fd5f90db446eac7391 /lib/System/Win32/Program.inc | |
parent | bd50a167236f19e2d3759cb06c5f7e8d1667a19c (diff) | |
download | llvm-0526653956e924304f4c56ff87f72cecbb49fba2.tar.gz llvm-0526653956e924304f4c56ff87f72cecbb49fba2.tar.bz2 llvm-0526653956e924304f4c56ff87f72cecbb49fba2.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.inc')
-rw-r--r-- | lib/System/Win32/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index e74b41cde1..49086b8348 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -226,7 +226,7 @@ Program::ExecuteAndWait(const Path& path, fflush(stdout); 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); DWORD err = GetLastError(); |