diff options
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 4e109a8bc9..e1637cd404 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -344,6 +344,7 @@ bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRe #ifdef SO_NOSIGPIPE int set = 1; + // Different way of disabling SIGPIPE on BSD setsockopt(hSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&set, sizeof(int)); #endif |