summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r--ace/Process_Manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index acfbb3b38a2..0449db4759a 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -190,6 +190,10 @@ ACE_Process_Manager::open (size_t size,
this->dummy_handle_ = ACE_OS::open (ACE_DEV_NULL,
O_WRONLY);
ACE_ASSERT (this->dummy_handle_ != ACE_INVALID_HANDLE);
+#if defined (F_SETFD)
+ // Don't want children to inherit the dummy I/O handle!
+ ACE_OS::fcntl (this->dummy_handle_, F_SETFD, 1);
+#endif /* F_SETFD */
// Register signal handler object. Note that NULL_MASK is used
// to keep the ACE_Reactor from calling us back on the