From owner-cvs-src-old@FreeBSD.ORG Thu Feb 5 14:23:04 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0886A10656C1 for ; Thu, 5 Feb 2009 14:23:04 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E906E8FC21 for ; Thu, 5 Feb 2009 14:23:03 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n15EN3Ze049358 for ; Thu, 5 Feb 2009 14:23:03 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n15EN3eb049357 for cvs-src-old@freebsd.org; Thu, 5 Feb 2009 14:23:03 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200902051423.n15EN3eb049357@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Thu, 5 Feb 2009 14:21:09 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern tty.c src/sys/sys tty.h src/usr.sbin/pstat pstat.8 pstat.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 14:23:04 -0000 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 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