Merge branch 'tl/relax-in-poll-emulation'

* tl/relax-in-poll-emulation:
  compat/poll: sleep 1 millisecond to avoid busy wait
This commit is contained in:
Junio C Hamano 2014-06-06 11:18:29 -07:00
commit 7461a3e9fc

View file

@ -605,7 +605,7 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout)
if (!rc && timeout == INFTIM)
{
SwitchToThread();
SleepEx (1, TRUE);
goto restart;
}