Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/kern In proc_representative_lwp(), include LWPs in ...
details: https://anonhg.NetBSD.org/src/rev/6b73bccffaa7
branches: nathanw_sa
changeset: 504789:6b73bccffaa7
user: nathanw <nathanw%NetBSD.org@localhost>
date: Wed Jun 20 13:44:47 2001 +0000
description:
In proc_representative_lwp(), include LWPs in state LSSUSPENDED, in case
they're the only things left.
diffstat:
sys/kern/kern_sysctl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a3d3eaa23227 -r 6b73bccffaa7 sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c Wed Jun 20 10:24:23 2001 +0000
+++ b/sys/kern/kern_sysctl.c Wed Jun 20 13:44:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sysctl.c,v 1.86.2.3 2001/04/09 01:57:54 nathanw Exp $ */
+/* $NetBSD: kern_sysctl.c,v 1.86.2.4 2001/06/20 13:44:47 nathanw Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -1750,7 +1750,8 @@
LIST_FOREACH(l, &p->p_lwps, l_sibling) {
if (l->l_stat == LSRUN ||
l->l_stat == LSSLEEP ||
- l->l_stat == LSONPROC)
+ l->l_stat == LSONPROC ||
+ l->l_stat == LSSUSPENDED)
return (l);
}
break;
Home |
Main Index |
Thread Index |
Old Index