Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2004 14:49:23 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern tty.c
Message-ID:  <200401082249.i08MnNvP037797@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2004/01/08 14:49:23 PST

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c 
  Log:
  Improve the expressiveness of ttyinfo (^T) when dealing with threads
  in slightly less usual states:
  
    If the thread is on a run queue, display "running" if the thread is
    actually running, otherwise, "runnable".
  
    If the thread is sleeping, and it's on a sleep queue, display the
    name of the queue, otherwise "unknown" -- previously, in this situation
    we would display "iowait".
  
    If the thread is waiting on a lock, display *lockname.
  
    If the thread is suspended, display "suspended" -- previously, in
    this situation we would display "iowait".
  
    If the thread is waiting for an interrupt, display "intrwait" --
    previously, in this situation we would display "iowait".
  
    If the thread is in a state not handled by the above, display
    "unknown" -- previously, we would print "iowait".
  
  Among other things, this avoids displaying "iowait" when the foreground
  process turns out to be suspended waiting for a debugger to properly
  attach.
  
  Revision  Changes    Path
  1.206     +16 -7     src/sys/kern/tty.c



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