Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/net.cc3
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))