Commit 84232099 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Handle EINTR when polling.

parent c8c4bf30
......@@ -589,7 +589,13 @@ static inline int do_block( int fd, int events )
pfd.fd = fd;
pfd.events = events;
poll(&pfd, 1, -1);
while (poll(&pfd, 1, -1) < 0)
{
if (errno != EINTR)
return -1;
}
return pfd.revents;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment