Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 13:04:53 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268493 - head/lib/libfetch
Message-ID:  <201407101304.s6AD4rne079137@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jul 10 13:04:52 2014
New Revision: 268493
URL: http://svnweb.freebsd.org/changeset/base/268493

Log:
  Support EAGAIN in fetch_writev
  
  Reviewed by:	des
  Approved by:	des

Modified:
  head/lib/libfetch/common.c

Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c	Thu Jul 10 12:41:58 2014	(r268492)
+++ head/lib/libfetch/common.c	Thu Jul 10 13:04:52 2014	(r268493)
@@ -1110,6 +1110,8 @@ fetch_writev(conn_t *conn, struct iovec 
 			errno = 0;
 			pfd.revents = 0;
 			if (poll(&pfd, 1, deltams) < 0) {
+				if (errno == EAGAIN)
+					continue;
 				if (errno == EINTR && fetchRestartCalls)
 					continue;
 				return (-1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101304.s6AD4rne079137>