From 7e30aa6347df41b65d8e33d3b7e98496915e87e8 Mon Sep 17 00:00:00 2001 From: jeka Date: Mon, 16 Feb 2026 08:44:05 +0300 Subject: [PATCH] 1 --- lib/u_async.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/u_async.c b/lib/u_async.c index 41775eafa..821cf3267 100644 --- a/lib/u_async.c +++ b/lib/u_async.c @@ -797,10 +797,18 @@ void uasync_poll(struct UASYNC* ua, int timeout_tb) { /* Call poll with cached fds */ int ret = poll(ua->poll_fds, ua->poll_fds_count, timeout_ms); if (ret < 0) { +#ifdef _WIN32 + int err = WSAGetLastError(); + if (err == WSAEINTR) { + return; + } + DEBUG_ERROR(DEBUG_CATEGORY_UASYNC, "WSAPoll failed: %d", err); +#else if (errno == EINTR) { return; } perror("poll"); +#endif return; }