svn commit: r196014 - projects/libprocstat/sys/kern
Stanislav Sedov
stas at FreeBSD.org
Sat Aug 1 12:50:08 UTC 2009
Author: stas
Date: Sat Aug 1 12:50:07 2009
New Revision: 196014
URL: http://svn.freebsd.org/changeset/base/196014
Log:
- Do not try to process the NULL controlling tty vnode.
Modified:
projects/libprocstat/sys/kern/kern_descrip.c
Modified: projects/libprocstat/sys/kern/kern_descrip.c
==============================================================================
--- projects/libprocstat/sys/kern/kern_descrip.c Sat Aug 1 11:40:46 2009 (r196013)
+++ projects/libprocstat/sys/kern/kern_descrip.c Sat Aug 1 12:50:07 2009 (r196014)
@@ -3001,7 +3001,8 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER
cttyvp = NULL;
if (p->p_pgrp != NULL && p->p_pgrp->pg_session != NULL) {
cttyvp = p->p_pgrp->pg_session->s_ttyvp;
- vref(cttyvp);
+ if (cttyvp != NULL)
+ vref(cttyvp);
}
fdp = fdhold(p);
PROC_UNLOCK(p);
More information about the svn-src-projects
mailing list