Add a comment to explain the EAGAIN is only there for POSIX compliance
Resquested by: kib Reviewed by: des
This commit is contained in:
parent
5e351014e0
commit
3674911c29
@ -1110,6 +1110,7 @@ fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
pfd.revents = 0;
|
pfd.revents = 0;
|
||||||
if (poll(&pfd, 1, deltams) < 0) {
|
if (poll(&pfd, 1, deltams) < 0) {
|
||||||
|
/* POSIX compliance */
|
||||||
if (errno == EAGAIN)
|
if (errno == EAGAIN)
|
||||||
continue;
|
continue;
|
||||||
if (errno == EINTR && fetchRestartCalls)
|
if (errno == EINTR && fetchRestartCalls)
|
||||||
|
Loading…
Reference in New Issue
Block a user