Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 15:29:43 +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: r268671 - head/lib/libfetch
Message-ID:  <201407151529.s6FFTh5X029214@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Jul 15 15:29:43 2014
New Revision: 268671
URL: http://svnweb.freebsd.org/changeset/base/268671

Log:
  Add a comment to explain the EAGAIN is only there for POSIX compliance
  
  Resquested by:	kib
  Reviewed by:	des

Modified:
  head/lib/libfetch/common.c

Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c	Tue Jul 15 13:29:36 2014	(r268670)
+++ head/lib/libfetch/common.c	Tue Jul 15 15:29:43 2014	(r268671)
@@ -1110,6 +1110,7 @@ fetch_writev(conn_t *conn, struct iovec 
 			errno = 0;
 			pfd.revents = 0;
 			if (poll(&pfd, 1, deltams) < 0) {
+				/* POSIX compliance */
 				if (errno == EAGAIN)
 					continue;
 				if (errno == EINTR && fetchRestartCalls)



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