summaryrefslogtreecommitdiff
path: root/ace/SOCK.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-02-19 16:42:08 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-02-19 16:42:08 +0000
commitb9710cef28893ed8ce6e84b25969fdbff59a7b6d (patch)
tree0c632b8a32b0839f2590589758c693d9751a3ea0 /ace/SOCK.cpp
parentf037ce84704a376b85f686b40cc9a0b764035095 (diff)
downloadATCD-b9710cef28893ed8ce6e84b25969fdbff59a7b6d.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/SOCK.cpp')
-rw-r--r--ace/SOCK.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/SOCK.cpp b/ace/SOCK.cpp
index 1ac7089bc24..7b30cb7d6fc 100644
--- a/ace/SOCK.cpp
+++ b/ace/SOCK.cpp
@@ -61,8 +61,10 @@ ACE_SOCK::open (int type,
if (this->get_handle () == ACE_INVALID_HANDLE)
return -1;
- else if (reuse_addr && this->set_option (SOL_SOCKET, SO_REUSEADDR,
- &one, sizeof one) == -1)
+ else if (protocol_family != PF_UNIX &&
+ reuse_addr
+ && this->set_option (SOL_SOCKET, SO_REUSEADDR,
+ &one, sizeof one) == -1)
{
this->close ();
return -1;