freebsd-dev/usr.sbin/pstat
Ed Schouten c3328b2ab8 Don't leave the console TTY constantly open.
When we leave the console TTY constantly open, we never reset the
termios attributes. This causes output processing, echoing, etc. not to
be reset to the proper values when going into single user mode after the
system has booted. It also causes nl-to-crnl-conversion not to take
place during shutdown, which causes a `staircase effect'.

This patch adds a new TTY flag, TF_OPENED_CONS, which is set when the
TTY is opened through /dev/console. Because the flags are only used by
the kernel and the pstat(8) utility, I've decided to renumber the TTY
flags. This shouldn't be an issue, because the TTY layer is not yet part
of a stable release.

Reported by:	Mark Atkinson <atkin901 yahoo com>
Tested by:	sepotvin
2009-02-05 14:21:09 +00:00
..
Makefile Use a designator for initializing only one member of the nlist 2005-03-21 18:11:31 +00:00
pstat.8 Don't leave the console TTY constantly open. 2009-02-05 14:21:09 +00:00
pstat.c Don't leave the console TTY constantly open. 2009-02-05 14:21:09 +00:00