From owner-freebsd-bugs Mon Jun 28 5:40: 8 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2D40215046 for ; Mon, 28 Jun 1999 05:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA27107; Mon, 28 Jun 1999 05:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 28 Jun 1999 05:40:03 -0700 (PDT) Message-Id: <199906281240.FAA27107@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Kazutaka YOKOTA Subject: Re: kern/12420: console fails to register tty size changes Reply-To: Kazutaka YOKOTA Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/12420; it has been noted by GNATS. From: Kazutaka YOKOTA To: aa8vb@ipass.net Cc: FreeBSD-gnats-submit@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: kern/12420: console fails to register tty size changes Date: Mon, 28 Jun 1999 21:33:36 +0900 >>Number: 12420 >>Category: kern >>Synopsis: console fails to register tty size changes [...] >>Arrival-Date: Sun Jun 27 16:20:01 PDT 1999 >>Closed-Date: >>Last-Modified: >>Originator: Randall Hopper >>Release: FreeBSD 3.2-RELEASE i386 >>Organization: >self >>Environment: > > Stock 3.2-RELEASE. > >>Description: > > The FreeBSD console does not pick up row/column size changes as > 3.0-RELEASE did when console mode changes are effected before > login. This causes full-screen applications like /usr/bin/more and > less to fail to work correctly. # Considering the nature of the bug, I would assume that the problem # existed for a long time and 3.0 did have the same problem... Anyway, please apply the following patch to /sys/dev/syscons/syscons.c and rebuild the kernel. Please report if it works. Kazu --- syscons.c-1.293.2.3 Tue May 11 12:30:41 1999 +++ syscons.c Mon Jun 28 21:29:06 1999 @@ -684,6 +684,7 @@ { struct tty *tp = scdevtotty(dev); keyarg_t key; + int error; if (!tp) return(ENXIO); @@ -711,6 +712,7 @@ else if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) return(EBUSY); + error = (*linesw[tp->t_line].l_open)(dev, tp); if (minor(dev) < MAXCONS && !console[minor(dev)]) { console[minor(dev)] = alloc_scp(); if (ISGRAPHSC(console[minor(dev)])) @@ -720,7 +722,7 @@ tp->t_winsize.ws_col = console[minor(dev)]->xsize; tp->t_winsize.ws_row = console[minor(dev)]->ysize; } - return ((*linesw[tp->t_line].l_open)(dev, tp)); + return error; } int To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message