From owner-svn-src-projects@FreeBSD.ORG Wed Jun 24 18:50:05 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4E571065672; Wed, 24 Jun 2009 18:50:05 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C3EF68FC0A; Wed, 24 Jun 2009 18:50:05 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OIo5wQ024906; Wed, 24 Jun 2009 18:50:05 GMT (envelope-from lulf@svn.freebsd.org) Received: (from lulf@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5OIo5A9024904; Wed, 24 Jun 2009 18:50:05 GMT (envelope-from lulf@svn.freebsd.org) Message-Id: <200906241850.n5OIo5A9024904@svn.freebsd.org> From: Ulf Lilleengen Date: Wed, 24 Jun 2009 18:50:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194883 - projects/libprocstat/sys/kern X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 18:50:06 -0000 Author: lulf Date: Wed Jun 24 18:50:05 2009 New Revision: 194883 URL: http://svn.freebsd.org/changeset/base/194883 Log: - Set vnode type after filling kinfo_file or else it will be overwritten. Modified: projects/libprocstat/sys/kern/kern_descrip.c Modified: projects/libprocstat/sys/kern/kern_descrip.c ============================================================================== --- projects/libprocstat/sys/kern/kern_descrip.c Wed Jun 24 18:48:53 2009 (r194882) +++ projects/libprocstat/sys/kern/kern_descrip.c Wed Jun 24 18:50:05 2009 (r194883) @@ -2964,8 +2964,8 @@ export_vnode_for_sysctl(struct vnode *vp return (ENOTDIR); } FILEDESC_SUNLOCK(fdp); - kif->kf_vnode_type = KF_VTYPE_VDIR; prepare_kinfo_file(vp, kif); + kif->kf_vnode_type = KF_VTYPE_VDIR; vrele(vp); /*