Author: avg
Date: Sun Oct 14 07:55:14 2012
New Revision: 241535
URL: http://svn.freebsd.org/changeset/base/241535

Log:
  MFC r241302: kvm_proclist: ignore processes in larvae state

Modified:
  stable/8/lib/libkvm/kvm_proc.c
Directory Properties:
  stable/8/lib/libkvm/   (props changed)

Modified: stable/8/lib/libkvm/kvm_proc.c
==============================================================================
--- stable/8/lib/libkvm/kvm_proc.c      Sun Oct 14 07:54:54 2012        
(r241534)
+++ stable/8/lib/libkvm/kvm_proc.c      Sun Oct 14 07:55:14 2012        
(r241535)
@@ -131,6 +131,8 @@ kvm_proclist(kd, what, arg, p, bp, maxcn
                        _kvm_err(kd, kd->program, "can't read proc at %x", 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)) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to