From 4472d6e1df6bdf98c5bf3f692296e6b2de5cbd55 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 10 Jul 2014 13:04:52 +0000 Subject: [PATCH] Support EAGAIN in fetch_writev Reviewed by: des Approved by: des --- lib/libfetch/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 3f8ef3b36325..38a0672f7db5 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);