From: Matthew Dillon Date: Thu, 24 May 2007 20:32:02 +0000 (+0000) Subject: Do an even better job discerning between blocked threads and blocked X-Git-Tag: v2.0.1~2980 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/2ad39b182574907f901e8814d455663a020d490b Do an even better job discerning between blocked threads and blocked processes. --- diff --git a/bin/ps/print.c b/bin/ps/print.c index 4bbd0ed27b..1ad67cb91b 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -32,7 +32,7 @@ * * @(#)print.c 8.6 (Berkeley) 4/16/94 * $FreeBSD: src/bin/ps/print.c,v 1.36.2.4 2002/11/30 13:00:14 tjr Exp $ - * $DragonFly: src/bin/ps/print.c,v 1.32 2007/05/24 20:28:15 dillon Exp $ + * $DragonFly: src/bin/ps/print.c,v 1.33 2007/05/24 20:32:02 dillon Exp $ */ #include @@ -188,7 +188,7 @@ state(const KINFO *k, const struct varent *vent) } else if (KI_LWP(k, tdflags) & TDF_SINTR) *cp = 'S'; /* interruptable lwkt wait */ - else if (KI_LWP(k, tdflags) & TDF_TSLEEPQ) + else if (KI_PROC(k, paddr)) *cp = 'D'; /* uninterruptable wait */ else *cp = 'B'; /* uninterruptable lwkt wait */