mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
parent
f8a7e36bba
commit
6f0776ed21
@ -1088,7 +1088,7 @@ IPipe* CServer::ConnectStream(const SLookupBlockingResult& lookup_result, unsign
|
||||
#if !defined(_WIN32) && defined(SOCK_CLOEXEC)
|
||||
if (errno == EINVAL)
|
||||
{
|
||||
type |= ~SOCK_CLOEXEC;
|
||||
type &= ~SOCK_CLOEXEC;
|
||||
s = socket(lookup_result.is_ipv6 ? AF_INET6 : AF_INET, type, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -299,7 +299,7 @@ bool CServiceAcceptor::init_socket_v4(unsigned short port, IServer::BindTarget b
|
||||
#if !defined(_WIN32) && defined(SOCK_CLOEXEC)
|
||||
if (errno == EINVAL)
|
||||
{
|
||||
type |= ~SOCK_CLOEXEC;
|
||||
type &= ~SOCK_CLOEXEC;
|
||||
s = socket(AF_INET, type, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -123,7 +123,7 @@ std::string Connector::getResponse(const std::string &cmd, const std::string &ar
|
||||
#if !defined(_WIN32) && defined(SOCK_CLOEXEC)
|
||||
if (errno == EINVAL)
|
||||
{
|
||||
type |= ~SOCK_CLOEXEC;
|
||||
type &= ~SOCK_CLOEXEC;
|
||||
p = socket(lookup_result.is_ipv6 ? AF_INET6 : AF_INET, type, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -364,7 +364,7 @@ bool CTCPFileServ::startIpv4(_u16 tcpport)
|
||||
#if !defined(_WIN32) && defined(SOCK_CLOEXEC)
|
||||
if (errno == EINVAL)
|
||||
{
|
||||
type |= ~SOCK_CLOEXEC;
|
||||
type &= ~SOCK_CLOEXEC;
|
||||
mSocket = socket(AF_INET, type, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -266,7 +266,7 @@ bool CUDPThread::init_v4(_u16 udpport)
|
||||
#if !defined(_WIN32) && defined(SOCK_CLOEXEC)
|
||||
if (errno == EINVAL)
|
||||
{
|
||||
type |= ~SOCK_CLOEXEC;
|
||||
type &= ~SOCK_CLOEXEC;
|
||||
udpsock = socket(AF_INET, type, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user