Add a comment to explain the EAGAIN is only there for POSIX compliance

Resquested by:	kib
Reviewed by:	des
This commit is contained in:
Baptiste Daroussin 2014-07-15 15:29:43 +00:00
parent 5e351014e0
commit 3674911c29

View File

@ -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)