svn commit: r241534 - stable/9/lib/libkvm
Andriy Gapon
avg at FreeBSD.org
Sun Oct 14 07:54:55 UTC 2012
Author: avg
Date: Sun Oct 14 07:54:54 2012
New Revision: 241534
URL: http://svn.freebsd.org/changeset/base/241534
Log:
MFC r241302: kvm_proclist: ignore processes in larvae state
Modified:
stable/9/lib/libkvm/kvm_proc.c
Directory Properties:
stable/9/lib/libkvm/ (props changed)
Modified: stable/9/lib/libkvm/kvm_proc.c
==============================================================================
--- stable/9/lib/libkvm/kvm_proc.c Sun Oct 14 07:52:38 2012 (r241533)
+++ stable/9/lib/libkvm/kvm_proc.c Sun Oct 14 07:54:54 2012 (r241534)
@@ -144,6 +144,8 @@ kvm_proclist(kvm_t *kd, int what, int ar
_kvm_err(kd, kd->program, "can't read proc at %p", p);
return (-1);
}
+ if (proc.p_state == PRS_NEW)
+ continue;
if (proc.p_state != PRS_ZOMBIE) {
if (KREAD(kd, (u_long)TAILQ_FIRST(&proc.p_threads),
&mtd)) {
More information about the svn-src-stable-9
mailing list