From owner-cvs-src-old@FreeBSD.ORG Wed Feb 2 15:46:45 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93C991065670 for ; Wed, 2 Feb 2011 15:46:45 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 656768FC12 for ; Wed, 2 Feb 2011 15:46:45 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p12FkjUn012644 for ; Wed, 2 Feb 2011 15:46:45 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p12Fkjtp012643 for cvs-src-old@freebsd.org; Wed, 2 Feb 2011 15:46:45 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201102021546.p12Fkjtp012643@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Wed, 2 Feb 2011 15:46:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd proto.c proto.h proto_impl.h proto_tcp4.c proto_uds.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2011 15:46:45 -0000 pjd 2011-02-02 15:46:28 UTC FreeBSD src repository Modified files: sbin/hastd proto.c proto.h proto_impl.h proto_tcp4.c proto_uds.c Log: SVN rev 218193 on 2011-02-02 15:46:28Z by pjd Add proto_connect_wait() to wait for connection to finish. If timeout argument to proto_connect() is -1, then the caller needs to use this new function to wait for connection. This change is in preparation for capsicum, where sandboxed worker wants to ask main process to connect in worker's behalf and pass descriptor to the worker. Because we don't want the main process to wait for the connection, it will start async connection and pass descriptor to the worker who will be responsible for waiting for the connection to finish. MFC after: 1 week Revision Changes Path 1.10 +22 -1 src/sbin/hastd/proto.c 1.6 +1 -0 src/sbin/hastd/proto.h 1.5 +2 -0 src/sbin/hastd/proto_impl.h 1.11 +43 -9 src/sbin/hastd/proto_tcp4.c 1.7 +16 -1 src/sbin/hastd/proto_uds.c