* fhandler_socket.cc (fhandler_socket::ioctl): Only cancel
WSAAsyncSelect when async mode is on.
This commit is contained in:
parent
6b76b0c5d4
commit
f317a917bc
|
@ -1,3 +1,8 @@
|
||||||
|
2005-03-04 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
|
* fhandler_socket.cc (fhandler_socket::ioctl): Only cancel
|
||||||
|
WSAAsyncSelect when async mode is on.
|
||||||
|
|
||||||
2005-03-03 Corinna Vinschen <corinna@vinschen.de>
|
2005-03-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygwin.din (utmpxname): Export.
|
* cygwin.din (utmpxname): Export.
|
||||||
|
|
|
@ -1594,7 +1594,7 @@ fhandler_socket::ioctl (unsigned int cmd, void *p)
|
||||||
/* We must cancel WSAAsyncSelect (if any) before setting socket to
|
/* We must cancel WSAAsyncSelect (if any) before setting socket to
|
||||||
* blocking mode
|
* blocking mode
|
||||||
*/
|
*/
|
||||||
if (cmd == FIONBIO && *(int *) p == 0)
|
if (cmd == FIONBIO && async_io () && *(int *) p == 0)
|
||||||
WSAAsyncSelect (get_socket (), winmsg, 0, 0);
|
WSAAsyncSelect (get_socket (), winmsg, 0, 0);
|
||||||
res = ioctlsocket (get_socket (), cmd, (unsigned long *) p);
|
res = ioctlsocket (get_socket (), cmd, (unsigned long *) p);
|
||||||
if (res == SOCKET_ERROR)
|
if (res == SOCKET_ERROR)
|
||||||
|
|
Loading…
Reference in New Issue