Removed loop which was retrying the select after being interrupted by a signal. This was leading to threads blocking forever.

This commit is contained in:
Mike McDonald 2014-08-01 15:48:54 -04:00
parent b9d5687e99
commit 12c0bd64f0

View File

@ -267,12 +267,8 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
timeout.tv_usec = (dwMilliseconds % 1000) * 1000;
}
do
{
status = select(event->pipe_fd[0] + 1, &rfds, NULL, NULL,
(dwMilliseconds == INFINITE) ? NULL : &timeout);
}
while (status < 0 && (errno == EINTR));
status = select(event->pipe_fd[0] + 1, &rfds, NULL, NULL,
(dwMilliseconds == INFINITE) ? NULL : &timeout);
if (status < 0)
{