svn commit: r187881 - head/sys/kern

Robert Watson rwatson at FreeBSD.org
Thu Jan 29 01:32:57 PST 2009


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;


More information about the svn-src-head mailing list