svn commit: r212860 - head/sys/kern
Kostik Belousov
kostikbel at gmail.com
Sun Sep 19 14:30:51 UTC 2010
On Sun, Sep 19, 2010 at 02:21:39PM +0000, Ed Schouten wrote:
> Author: ed
> Date: Sun Sep 19 14:21:39 2010
> New Revision: 212860
> URL: http://svn.freebsd.org/changeset/base/212860
>
> Log:
> Ignore DCD handling on /dev/console entirely.
>
> This makes /dev/console more fail-safe and prevents a potential console
> lock-up during boot.
>
> Discussed on: stable@
> Tested by: koitsu@
> MFC after: 1 week
>
> Modified:
> head/sys/kern/tty.c
>
> Modified: head/sys/kern/tty.c
> ==============================================================================
> --- head/sys/kern/tty.c Sun Sep 19 13:49:02 2010 (r212859)
> +++ head/sys/kern/tty.c Sun Sep 19 14:21:39 2010 (r212860)
> @@ -282,7 +282,8 @@ ttydev_open(struct cdev *dev, int oflags
>
> /* Wait for Carrier Detect. */
> if (!TTY_CALLOUT(tp, dev) && (oflags & O_NONBLOCK) == 0 &&
> - (tp->t_termios.c_cflag & CLOCAL) == 0) {
> + (tp->t_termios.c_cflag & CLOCAL) == 0 &&
> + dev != dev_console) {
> while ((ttydevsw_modem(tp, 0, 0) & SER_DCD) == 0) {
> error = tty_wait(tp, &tp->t_dcdwait);
> if (error != 0)
Shouldn't you always report CLOCAL for console then ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100919/171a4e77/attachment.pgp
More information about the svn-src-all
mailing list