netlink-socket: Use poll_immediate_wake() on Windows.
authorNithin Raju <nithin@vmware.com>
Tue, 21 Oct 2014 23:10:38 +0000 (16:10 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Oct 2014 16:01:42 +0000 (09:01 -0700)
We have not yet tested the wakup via pending IRP functionality on
Windows yet. Hence we use poll_immediate_wake().

Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
lib/netlink-socket.c

index 68e81d1..07db97c 100644 (file)
@@ -1174,8 +1174,9 @@ nl_sock_wait(const struct nl_sock *sock, short int events)
 #ifdef _WIN32
     if (sock->overlapped.Internal != STATUS_PENDING) {
         pend_io_request(sock);
+       /* XXX: poll_wevent_wait(sock->overlapped.hEvent); */
     }
-    poll_fd_wait(sock->handle, events);
+    poll_immediate_wake(); /* XXX: temporary. */
 #else
     poll_fd_wait(sock->fd, events);
 #endif