summaryrefslogtreecommitdiff
path: root/TAO/tao/Strategies/UIOP_Acceptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Strategies/UIOP_Acceptor.cpp')
-rw-r--r--TAO/tao/Strategies/UIOP_Acceptor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/TAO/tao/Strategies/UIOP_Acceptor.cpp b/TAO/tao/Strategies/UIOP_Acceptor.cpp
index a41f51b7133..cbb5592d386 100644
--- a/TAO/tao/Strategies/UIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/UIOP_Acceptor.cpp
@@ -312,6 +312,11 @@ TAO_UIOP_Acceptor::open_i (const char *rendezvous)
return -1;
}
+ (void) this->base_acceptor_.acceptor().enable (ACE_CLOEXEC);
+ // This avoids having child processes acquire the listen socket thereby
+ // denying the server the opportunity to restart on a well-known endpoint.
+ // This does not affect the aberrent behavior on Win32 platforms.
+
// @@ If Profile creation is slow we may need to cache the
// rendezvous point here