From: Azat Khuzhin Date: Tue, 29 Jan 2019 04:56:21 +0000 (+0300) Subject: win32select: print an error in case of failure X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8882f4fd60aa61fe1caf8b372989427a9872c3b9;p=libevent win32select: print an error in case of failure --- diff --git a/win32select.c b/win32select.c index 1766858c..0ddfe4b4 100644 --- a/win32select.c +++ b/win32select.c @@ -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; }