Date: Thu, 5 Feb 2009 14:21:09 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern tty.c src/sys/sys tty.h src/usr.sbin/pstat pstat.8 pstat.c Message-ID: <200902051423.n15EN3eb049357@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-02-05 14:21:09 UTC FreeBSD src repository Modified files: sys/kern tty.c sys/sys tty.h usr.sbin/pstat pstat.8 pstat.c Log: SVN rev 188147 on 2009-02-05 14:21:09Z by ed 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 Revision Changes Path 1.308 +42 -33 src/sys/kern/tty.c 1.112 +18 -17 src/sys/sys/tty.h 1.53 +2 -0 src/usr.sbin/pstat/pstat.8 1.108 +22 -21 src/usr.sbin/pstat/pstat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902051423.n15EN3eb049357>