diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-02-19 16:42:08 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-02-19 16:42:08 +0000 |
commit | b9710cef28893ed8ce6e84b25969fdbff59a7b6d (patch) | |
tree | 0c632b8a32b0839f2590589758c693d9751a3ea0 /ace | |
parent | f037ce84704a376b85f686b40cc9a0b764035095 (diff) | |
download | ATCD-b9710cef28893ed8ce6e84b25969fdbff59a7b6d.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r-- | ace/SOCK.cpp | 6 |
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; |