From owner-cvs-all@FreeBSD.ORG Thu Feb 16 00:51:23 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04E5816A426; Thu, 16 Feb 2006 00:51:23 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B253143D55; Thu, 16 Feb 2006 00:51:22 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1G0pM9H066265; Thu, 16 Feb 2006 00:51:22 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1G0pMA5066264; Thu, 16 Feb 2006 00:51:22 GMT (envelope-from mux) Message-Id: <200602160051.k1G0pMA5066264@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 16 Feb 2006 00:51:22 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup proto.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 00:51:23 -0000 mux 2006-02-16 00:51:22 UTC FreeBSD projects repository Modified files: csup proto.c Log: After the select() call waiting for the asynchronous connection to finish has returned, we need to retrieve SO_ERROR with getsockopt() to ensure that the connection was really successful. We don't even do asynchronous connections ourselves, but they happen anyway if the connect() call is interrupted and returns EINTR. That makes quite some code for such a rare event, so put it in a new function called proto_waitconnect(). Revision Changes Path 1.70 +35 -13 projects/csup/proto.c