Fix by Conrad Scott <conrad.scott@dsl.pipex.com>:

* fhandler_socket.cc (fhandler_socket::accept): Fix FIONBIO call.
This commit is contained in:
Corinna Vinschen 2002-08-07 10:08:17 +00:00
parent 88de60e449
commit 235d9fdadc
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-08-07 Conrad Scott <conrad.scott@dsl.pipex.com>
* fhandler_socket.cc (fhandler_socket::accept): Fix FIONBIO call.
2002-08-06 Christopher Faylor <cgf@redhat.com>
* cygheap.cc (_csbrk): Avoid !cygheap considerations.

View File

@ -523,8 +523,9 @@ fhandler_socket::accept (struct sockaddr *peer, int *len)
/* Unset events for listening socket and
switch back to blocking mode */
WSAEventSelect (get_socket (), ev[0], 0 );
ioctlsocket (get_socket (), FIONBIO, 0);
WSAEventSelect (get_socket (), ev[0], 0);
unsigned long nonblocking = 0;
ioctlsocket (get_socket (), FIONBIO, &nonblocking);
switch (wait_result)
{