From 1d9319c7fb13b3e3fa662fc5a2b7212373ac9d13 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 29 Jan 2019 07:56:21 +0300 Subject: [PATCH] win32select: print an error in case of failure (cherry picked from commit 8882f4fd60aa61fe1caf8b372989427a9872c3b9) --- win32select.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.40.0