Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 1999 05:40:03 -0700 (PDT)
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/12420: console fails to register tty size changes 
Message-ID:  <199906281240.FAA27107@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR kern/12420; it has been noted by GNATS.

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906281240.FAA27107>