poll/select: prevent busy-waiting
[gnulib.git] / lib / poll.c
index 3071b12..5ad9d86 100644 (file)
@@ -598,7 +598,7 @@ restart:
 
   if (!rc && timeout == INFTIM)
     {
-      SwitchToThread();
+      SleepEx (1, TRUE);
       goto restart;
     }