compat: cancel association of network events before close
authorHannes Domani <ssbssa@yahoo.de>
Wed, 15 Jul 2015 18:57:06 +0000 (20:57 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Jul 2015 17:37:15 +0000 (20:37 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
compat/poll.c

index 3fa4e7a..fa94c93 100644 (file)
@@ -200,6 +200,7 @@ int poll(struct pollfd *fds, unsigned nfds, int timeout)
 
         if (WSAEnumNetworkEvents(fds[i].fd, evts[i], &ne))
             memset(&ne, 0, sizeof (ne));
+        WSAEventSelect(fds[i].fd, evts[i], 0);
         WSACloseEvent(evts[i]);
 
         if (ne.lNetworkEvents & FD_CONNECT)