diff options
author | bapt <bapt@FreeBSD.org> | 2014-07-20 00:29:41 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-07-20 00:29:41 +0000 |
commit | 63350d40ce15303c5d0420d475b65e1888cd3ff3 (patch) | |
tree | b27151a0dd7c66f04a54b13385b1de9e3e6dcc61 /lib/libfetch/common.c | |
parent | 73fb3c280598036462af67b72879afe5bb731dc1 (diff) | |
download | FreeBSD-src-63350d40ce15303c5d0420d475b65e1888cd3ff3.zip FreeBSD-src-63350d40ce15303c5d0420d475b65e1888cd3ff3.tar.gz |
MFC: r267131, r267132, r267133, r268493, r268671
Use NULL instead of 0 (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Remove unnecessary semicolons (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Add support for arbitrary http requests [1]
Support EAGAIN in fetch_writev
Submitted by: Alex Hornung <alex at alexhornung.com> [1]
Reviewed by: des
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r-- | lib/libfetch/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 3f8ef3b..a6fc47c 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -1110,6 +1110,9 @@ fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt) errno = 0; pfd.revents = 0; if (poll(&pfd, 1, deltams) < 0) { + /* POSIX compliance */ + if (errno == EAGAIN) + continue; if (errno == EINTR && fetchRestartCalls) continue; return (-1); |