aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-28 05:57:18 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-28 05:57:18 +0000
commit0702179d28f42d9901bd5d7a5251e8e47751853d (patch)
tree87718a03f59b3fc3f15656150c792d8f1060f069 /src
parentf77ff938b7774d45f106b0fa9d6b6a8bab176b72 (diff)
downloadtor-0702179d28f42d9901bd5d7a5251e8e47751853d.tar
tor-0702179d28f42d9901bd5d7a5251e8e47751853d.tar.gz
Very oops. make windows nonblocking sockets nonblocking
svn:r2998
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 4cf481fba..49c8c3a7a 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -180,8 +180,7 @@ int replace_file(const char *from, const char *to)
void set_socket_nonblocking(int socket)
{
#ifdef MS_WINDOWS
- /* Yes means no and no means yes. Do you not want to be nonblocking? */
- int nonblocking = 0;
+ int nonblocking = 1;
ioctlsocket(socket, FIONBIO, (unsigned long*) &nonblocking);
#else
fcntl(socket, F_SETFL, O_NONBLOCK);