summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_compat.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-02-04 05:46:05 +0000
committerrwatson <rwatson@FreeBSD.org>2004-02-04 05:46:05 +0000
commit4287cbb5774e50a32c29014780de9c0517371d74 (patch)
tree10b21761f89d6cb59eb7554a5b60295ae46656ae /sys/kern/tty_compat.c
parent58d87c5c98d9ad8390efa179ce5713e9b63ec640 (diff)
downloadFreeBSD-src-4287cbb5774e50a32c29014780de9c0517371d74.zip
FreeBSD-src-4287cbb5774e50a32c29014780de9c0517371d74.tar.gz
A variety of further cleanups to ttyinfo():
- Rename temporary variable names ("tmp", "tmp2") to more informative names ("load", "pctcpu", "rss", ...) - Unclutter indentation and return paths: rather than lots of nested ifs, simply return earlier if it's not going to work out. Simplify general structure and avoid "deep" code. - Comment on the thread/process selection and locking. - Correct handling of "running"/"runnable" states, avoid "unknown" that people were seeing for running processes. This was due to a misunderstanding of the more complex state machine / inhibitors behavior of KSE. - Do perform ttyinfo() printing on KSE (P_SA) processes, it seems generally to work. While I initially attempted to formulate this as two commits (one layout, the other content), I concluded that the layout changes were really structural changes. Many elements submitted by: bde
Diffstat (limited to 'sys/kern/tty_compat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud