mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Support EAGAIN in fetch_writev
Reviewed by: des Approved by: des
This commit is contained in:
parent
8ff2bd98d6
commit
4472d6e1df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268493
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue