diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-02 14:29:53 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-02 14:29:53 +0400 |
commit | f5da8224f6bec0019c2e36c4858917139bf74663 (patch) | |
tree | 03f9dc405a5bd4a0aa7a597a903e69efb40142b5 | |
parent | 59c9f5f586104615fe5acce7d7d506f26340d02f (diff) |
* net.cc (wsock_event::release): Use NULL handle in call to
WSAEventSelect to resolve KB 168349.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/net.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7cba516f4..1cf415295 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-04-02 Corinna Vinschen <corinna@vinschen.de> + + * net.cc (wsock_event::release): Use NULL handle in call to + WSAEventSelect to resolve KB 168349. + 2004-04-01 Corinna Vinschen <corinna@vinschen.de> * fhandler_socket.cc (fhandler_socket::recvfrom): Rearrange loop diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 4f8ee3d12..32b9f1f3e 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -119,7 +119,8 @@ void wsock_event::release (int sock) { int last_err = WSAGetLastError (); - WSAEventSelect (sock, event, 0); + /* KB 168349: NT4 fails if the event parameter is not NULL. */ + WSAEventSelect (sock, NULL, 0); WSACloseEvent (event); unsigned long non_block = 0; if (ioctlsocket (sock, FIONBIO, &non_block)) |