From ad765b09459ed118db2a2fac7a72c60df438d9fe Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 29 Jan 2009 09:32:56 +0000 Subject: [PATCH] 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. --- sys/kern/tty_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c index de06775ab9e..cbd74023bba 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;