summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_info.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-01-29 09:32:56 +0000
committerrwatson <rwatson@FreeBSD.org>2009-01-29 09:32:56 +0000
commit71477534380229af46071e5fcbd5e2b89362dfc5 (patch)
treed679ec6e9424f8c015beb61e25565e5911c175be /sys/kern/tty_info.c
parentbfa45b3bb76cd5efc2aa5585b51801d544ffffa1 (diff)
downloadFreeBSD-src-71477534380229af46071e5fcbd5e2b89362dfc5.zip
FreeBSD-src-71477534380229af46071e5fcbd5e2b89362dfc5.tar.gz
If a process is a zombie and we couldn't identify another useful state,
print out the state as "zombine" in preference to "unknown" when ^T is pressed. MFC after: 3 days Sponsored by: Google, Inc.
Diffstat (limited to 'sys/kern/tty_info.c')
-rw-r--r--sys/kern/tty_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c
index de06775..cbd7402 100644
--- a/sys/kern/tty_info.c
+++ b/sys/kern/tty_info.c
@@ -285,6 +285,8 @@ tty_info(struct tty *tp)
state = "suspended";
else if (TD_AWAITING_INTR(td))
state = "intrwait";
+ else if (pick->p_state == PRS_ZOMBIE)
+ state = "zombie";
else
state = "unknown";
pctcpu = (sched_pctcpu(td) * 10000 + FSCALE / 2) >> FSHIFT;
OpenPOWER on IntegriCloud