From owner-svn-src-all@FreeBSD.ORG Thu Jul 10 13:04:53 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A616FF39; Thu, 10 Jul 2014 13:04:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93C3328C4; Thu, 10 Jul 2014 13:04:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6AD4rqs079138; Thu, 10 Jul 2014 13:04:53 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6AD4rne079137; Thu, 10 Jul 2014 13:04:53 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201407101304.s6AD4rne079137@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 10 Jul 2014 13:04:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268493 - head/lib/libfetch X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 13:04:53 -0000 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);