From owner-p4-projects@FreeBSD.ORG Thu Jun 25 07:29:05 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 26AEB10656ED; Thu, 25 Jun 2009 07:29:05 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D87AC10656EB for ; Thu, 25 Jun 2009 07:29:04 +0000 (UTC) (envelope-from jona@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C745C8FC12 for ; Thu, 25 Jun 2009 07:29:04 +0000 (UTC) (envelope-from jona@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5P7T4Qq045513 for ; Thu, 25 Jun 2009 07:29:04 GMT (envelope-from jona@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5P7T4d8045511 for perforce@freebsd.org; Thu, 25 Jun 2009 07:29:04 GMT (envelope-from jona@FreeBSD.org) Date: Thu, 25 Jun 2009 07:29:04 GMT Message-Id: <200906250729.n5P7T4d8045511@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jona@FreeBSD.org using -f From: Jonathan Anderson To: Perforce Change Reviews Cc: Subject: PERFORCE change 165134 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 07:29:06 -0000 http://perforce.freebsd.org/chv.cgi?CH=165134 Change 165134 by jona@jona-trustedbsd-belle-vmware on 2009/06/25 07:28:59 Cache the user angel FD Affected files ... .. //depot/projects/trustedbsd/capabilities/src/lib/libuserangel/libuserangel.c#3 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/lib/libuserangel/libuserangel.c#3 (text+ko) ==== @@ -52,6 +52,7 @@ void handle_error(const datum *d); +int angel = -1; char errmsg[256]; const char* ua_protocol_error(void) { return errmsg; } @@ -75,7 +76,7 @@ addr.sun_family = AF_UNIX; strcpy(addr.sun_path, control_socket_name); - int angel = socket(AF_UNIX, SOCK_STREAM, 0); + angel = socket(AF_UNIX, SOCK_STREAM, 0); if(connect(angel, (struct sockaddr*) &addr, sizeof(addr))) { sprintf(errmsg, "Error connecting to angel at '%s'", addr.sun_path);