diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-02-27 21:01:09 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-02-27 21:01:09 +0000 |
commit | 19c59319cad4747bbd72370466fafa7e716ffe73 (patch) | |
tree | 5bdfd874c731d472abb4475f7d738ddf158d117a /cpp/src/IcePack/ActivatorI.cpp | |
parent | moving to branch (diff) | |
download | ice-19c59319cad4747bbd72370466fafa7e716ffe73.tar.bz2 ice-19c59319cad4747bbd72370466fafa7e716ffe73.tar.xz ice-19c59319cad4747bbd72370466fafa7e716ffe73.zip |
CloseHandle fix
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-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; |