]> granicus.if.org Git - libevent/commitdiff
win32select: print an error in case of failure
authorAzat Khuzhin <azat@libevent.org>
Tue, 29 Jan 2019 04:56:21 +0000 (07:56 +0300)
committerAzat Khuzhin <azat@libevent.org>
Tue, 29 Jan 2019 07:53:55 +0000 (10:53 +0300)
win32select.c

index 1766858c2ca21b694e53d0b8418d64bc45a201fb..0ddfe4b499af1a05981236867f76e6e84d9ba1fd 100644 (file)
@@ -326,6 +326,8 @@ win32_dispatch(struct event_base *base, struct timeval *tv)
        event_debug(("%s: select returned %d", __func__, res));
 
        if (res <= 0) {
+               event_debug(("%s: %s", __func__,
+                   evutil_socket_error_to_string(EVUTIL_SOCKET_ERROR())));
                return res;
        }