Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 09:32:56 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187881 - head/sys/kern
Message-ID:  <200901290932.n0T9WuMb047585@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Thu Jan 29 09:32:56 2009
New Revision: 187881
URL: http://svn.freebsd.org/changeset/base/187881

Log:
  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.

Modified:
  head/sys/kern/tty_info.c

Modified: head/sys/kern/tty_info.c
==============================================================================
--- head/sys/kern/tty_info.c	Thu Jan 29 09:22:56 2009	(r187880)
+++ head/sys/kern/tty_info.c	Thu Jan 29 09:32:56 2009	(r187881)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901290932.n0T9WuMb047585>