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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to