[or-cvs] Very oops. make windows nonblocking sockets nonblocking
Nick Mathewson
nickm at seul.org
Sun Nov 28 05:57:20 UTC 2004
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv24105/src/common
Modified Files:
compat.c
Log Message:
Very oops. make windows nonblocking sockets nonblocking
Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- compat.c 28 Nov 2004 05:48:02 -0000 1.13
+++ compat.c 28 Nov 2004 05:57:18 -0000 1.14
@@ -180,8 +180,7 @@
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);
More information about the tor-commits
mailing list