diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-11 15:21:36 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-11 15:21:36 (GMT) |
commit | f262298bb037b683c995f239d1ca9fc00aaec3f3 (patch) | |
tree | 5144068cbd9df6d0c99139f227392aa5e005770e /Source/cmSystemTools.cxx | |
parent | 4835f8303b4bf9c729b00f0b3aedca6f229b2d2f (diff) | |
download | CMake-f262298bb037b683c995f239d1ca9fc00aaec3f3.zip CMake-f262298bb037b683c995f239d1ca9fc00aaec3f3.tar.gz CMake-f262298bb037b683c995f239d1ca9fc00aaec3f3.tar.bz2 |
ENH: fix 2 ctest issues, do not use the build type of ctest to look for config types, do not inherit pipes in child procs for ctest so it can kill them
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 337e60f..7e59724 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1976,3 +1976,20 @@ int cmSystemTools::WaitForLine(cmsysProcess* process, std::string& line, } } +void cmSystemTools::DoNotInheritStdPipes() +{ + { + HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); + DuplicateHandle(GetCurrentProcess(), out, + GetCurrentProcess(), &out, 0, FALSE, + DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); + SetStdHandle(STD_OUTPUT_HANDLE, out); + } + { + HANDLE out = GetStdHandle(STD_ERROR_HANDLE); + DuplicateHandle(GetCurrentProcess(), out, + GetCurrentProcess(), &out, 0, FALSE, + DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); + SetStdHandle(STD_ERROR_HANDLE, out); + } +} |