Handle EINTR in ix::poll on Unix
This commit is contained in:
parent
ea32c0e1ec
commit
fcf114e2b2
@ -114,16 +114,13 @@ namespace ix
|
|||||||
//
|
//
|
||||||
// The style from libuv is as such.
|
// The style from libuv is as such.
|
||||||
//
|
//
|
||||||
// int ret = -1;
|
int ret = -1;
|
||||||
// do
|
do
|
||||||
// {
|
{
|
||||||
// ret = ::poll(fds, nfds, timeout);
|
ret = ::poll(fds, nfds, timeout);
|
||||||
// }
|
} while (ret == -1 && errno == EINTR);
|
||||||
// while (ret == -1 && errno == EINTR);
|
|
||||||
// return ret;
|
|
||||||
//
|
|
||||||
|
|
||||||
return ::poll(fds, nfds, timeout);
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user