Date: Fri, 8 Jul 2011 12:19:25 +0000 (UTC) From: Jonathan Anderson <jonathan@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_descrip.c Message-ID: <201107081219.p68CJdko067618@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107081219.p68CJdko067618>