Support EAGAIN in fetch_writev

Reviewed by:	des
Approved by:	des
This commit is contained in:
Baptiste Daroussin 2014-07-10 13:04:52 +00:00
parent 8ff2bd98d6
commit 4472d6e1df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268493

View File

@ -1110,6 +1110,8 @@ fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt)
errno = 0;
pfd.revents = 0;
if (poll(&pfd, 1, deltams) < 0) {
if (errno == EAGAIN)
continue;
if (errno == EINTR && fetchRestartCalls)
continue;
return (-1);