diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IcePack/ActivatorI.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp index 67677bf1f3e..a7827ed920a 100644 --- a/cpp/src/IcePack/ActivatorI.cpp +++ b/cpp/src/IcePack/ActivatorI.cpp @@ -1270,10 +1270,16 @@ IcePack::ActivatorI::terminationListener() } CloseHandle(hnd); - CloseHandle(p->outHandle); - if(!_redirectErrToOut) + if(_outputDir.size() > 0) { - CloseHandle(p->errHandle); + // + // STDOUT and STDERR should not be closed + // + CloseHandle(p->outHandle); + if(!_redirectErrToOut) + { + CloseHandle(p->errHandle); + } } _processes.erase(p); break; |