diff --git a/compat/win32/poll.c b/compat/win32/poll.c index 403eaa7a3c8c75..a2b82a61add201 100644 --- a/compat/win32/poll.c +++ b/compat/win32/poll.c @@ -597,7 +597,9 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout) if (!rc && timeout == INFTIM) { - SwitchToThread(); + /* Sleep 1 millisecond to avoid busy wait */ + SleepEx(1, TRUE); + goto restart; }