summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ActivatorI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-02-27 21:01:09 +0000
committerBernard Normier <bernard@zeroc.com>2004-02-27 21:01:09 +0000
commit19c59319cad4747bbd72370466fafa7e716ffe73 (patch)
tree5bdfd874c731d472abb4475f7d738ddf158d117a /cpp/src/IcePack/ActivatorI.cpp
parentmoving to branch (diff)
downloadice-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.cpp12
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;