summaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:46:58 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:46:58 +0000
commit09b802d5e94b71318e3b49f2d35554438efc5331 (patch)
treee89ff66d0684a09e93b241bc8e0c31fb2b2c6e3c /src/socketengine.cpp
parent6ba640bd53470faea4032f1611af8996b36b4980 (diff)
ThreadWindows: Remove ThreadSignalListener and connect the socket right away
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11617 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index 9d54e8b66..af2f1b169 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -188,7 +188,7 @@ int SocketEngine::Blocking(int fd)
return ioctlsocket(fd, FIONBIO, &opt);
#else
int flags = fcntl(fd, F_GETFL, 0);
- return fcntl(fd, F_SETFL, flags ^ O_NONBLOCK);
+ return fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
#endif
}