diff options
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-rw-r--r-- | cpp/src/IcePack/ActivatorI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp index cbf990cfed7..531521fa138 100644 --- a/cpp/src/IcePack/ActivatorI.cpp +++ b/cpp/src/IcePack/ActivatorI.cpp @@ -211,9 +211,9 @@ IcePack::ActivatorI::activate(const ServerPtr& server) ex.error = getSystemErrno(); throw ex; } + if(pid == 0) // Child process. { - #ifdef __linux // // Create a process group for this child, to be able to send @@ -221,6 +221,7 @@ IcePack::ActivatorI::activate(const ServerPtr& server) // setpgrp(); #endif + // // Close all file descriptors, except for standard input, // standard output, standard error output, and the write side |