[llvm-commits] [llvm] r69082 - /llvm/trunk/lib/System/Win32/Program.inc
Mikhail Glushenkov
foldr at codedgers.com
Tue Apr 14 14:31:36 PDT 2009
Author: foldr
Date: Tue Apr 14 16:31:36 2009
New Revision: 69082
URL: http://llvm.org/viewvc/llvm-project?rev=69082&view=rev
Log:
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.
Modified:
llvm/trunk/lib/System/Win32/Program.inc
Modified: llvm/trunk/lib/System/Win32/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Program.inc?rev=69082&r1=69081&r2=69082&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Program.inc (original)
+++ llvm/trunk/lib/System/Win32/Program.inc Tue Apr 14 16:31:36 2009
@@ -226,7 +226,7 @@
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();
More information about the llvm-commits
mailing list