mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Very oops. make windows nonblocking sockets nonblocking
svn:r2998
This commit is contained in:
parent
f77ff938b7
commit
0702179d28
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user