From owner-cvs-src-old@FreeBSD.ORG Fri Jul 8 12:19:39 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 8A10D1065785 for ; Fri, 8 Jul 2011 12:19:39 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 793518FC17 for ; Fri, 8 Jul 2011 12:19:39 +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 p68CJdQc067619 for ; Fri, 8 Jul 2011 12:19:39 GMT (envelope-from jonathan@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p68CJdko067618 for cvs-src-old@freebsd.org; Fri, 8 Jul 2011 12:19:39 GMT (envelope-from jonathan@repoman.freebsd.org) Message-Id: <201107081219.p68CJdko067618@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jonathan@repoman.freebsd.org using -f From: Jonathan Anderson Date: Fri, 8 Jul 2011 12:19:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_descrip.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: Fri, 08 Jul 2011 12:19:39 -0000 jonathan 2011-07-08 12:19:25 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c Log: SVN rev 223866 on 2011-07-08 12:19:25Z by jonathan Fix the "passability" test in fdcopy(). Rather than checking to see if a descriptor is a kqueue, check to see if its fileops flags include DFLAG_PASSABLE. At the moment, these two tests are equivalent, but this will change with the addition of capabilities that wrap kqueues but are themselves of type DTYPE_CAPABILITY. We already have the DFLAG_PASSABLE abstraction, so let's use it. This change has been tested with [the newly improved] tools/regression/kqueue. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc Revision Changes Path 1.373 +2 -2 src/sys/kern/kern_descrip.c