diff options
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); |