Module Name:    src
Committed By:   bouyer
Date:           Mon May 18 19:56:04 UTC 2009

Modified Files:
        src/usr.sbin/schedctl [netbsd-5-0]: schedctl.c

Log Message:
Pull up following revision(s) (requested by rmind in ticket #763):
        usr.sbin/schedctl/schedctl.c: revision 1.14
Skip LSIDL and LSZOMB threads when retrieving info.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.4.1 src/usr.sbin/schedctl/schedctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/schedctl/schedctl.c
diff -u src/usr.sbin/schedctl/schedctl.c:1.12 src/usr.sbin/schedctl/schedctl.c:1.12.4.1
--- src/usr.sbin/schedctl/schedctl.c:1.12	Sat Oct 18 03:40:18 2008
+++ src/usr.sbin/schedctl/schedctl.c	Mon May 18 19:56:04 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: schedctl.c,v 1.12 2008/10/18 03:40:18 rmind Exp $	*/
+/*	$NetBSD: schedctl.c,v 1.12.4.1 2009/05/18 19:56:04 bouyer Exp $	*/
 
 /*
  * Copyright (c) 2008, Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -33,7 +33,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: schedctl.c,v 1.12 2008/10/18 03:40:18 rmind Exp $");
+__RCSID("$NetBSD: schedctl.c,v 1.12.4.1 2009/05/18 19:56:04 bouyer Exp $");
 #endif
 
 #include <stdio.h>
@@ -165,6 +165,8 @@
 		for (lwp = lwp_list, i = 0; i < count; lwp++, i++) {
 			if (lid && lid != lwp->l_lid)
 				continue;
+			if (lwp->l_stat == LSIDL || lwp->l_stat == LSZOMB)
+				continue;
 			thread_info(pid, lwp->l_lid);
 		}
 		kvm_close(kd);

Reply via email to