From 3674911c297b804991e2e776b32601cb5fa5b7a8 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 15 Jul 2014 15:29:43 +0000 Subject: [PATCH] Add a comment to explain the EAGAIN is only there for POSIX compliance Resquested by: kib Reviewed by: des --- lib/libfetch/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 38a0672f7db5..a6fc47c60e44 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -1110,6 +1110,7 @@ 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)