diff options
author | bapt <bapt@FreeBSD.org> | 2014-07-10 13:04:52 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-07-10 13:04:52 +0000 |
commit | a25f9f5e2169061c5c422f1c117c62cfd62f1870 (patch) | |
tree | 67008d16028ceb201c6102ce4b6cac52b4d3cc96 /lib/libfetch/common.c | |
parent | 98615618b9111a31eeee5dc16b6e1c458fa36857 (diff) | |
download | FreeBSD-src-a25f9f5e2169061c5c422f1c117c62cfd62f1870.zip FreeBSD-src-a25f9f5e2169061c5c422f1c117c62cfd62f1870.tar.gz |
Support EAGAIN in fetch_writev
Reviewed by: des
Approved by: des
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r-- | lib/libfetch/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 3f8ef3b..38a0672 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -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); |