Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 1996 09:40:52 -0400
From:      "Frank E. Terhaar-Yonkers" <fty@mcnc.org>
To:        current@freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   minor syscons bogon
Message-ID:  <199604241340.JAA14983@robin.mcnc.org.mcnc.org>

next in thread | raw e-mail | index | archive | help
I posted recently that I was having trouble with console lockups while
running X.  This problem was a combination of "I'm a stupid" and a minor
bug in syscons.c.

I'd recompiled my kernel with MAXCONS set to to 4, to save a few bytes of
memory and left xdm getty'd to ttyv4 - duh.  Only, the bloody thing
ran - for a while, until it had tiptoed thru enuf memory ...

Would someone kindly commit this patch so others don't fall in the same
hole?  I believe pcvt has the same bug, but haven't looked at it.

- Frank

*** syscons.c.orig      Thu Feb  8 04:25:44 1996
--- syscons.c   Wed Apr 24 05:31:05 1996
***************
*** 305,311 ****

      if (!init_done)
        return(NULL);
!     if (unit > MAXCONS || unit < 0)
        return(NULL);
      if (unit == MAXCONS)
        return CONSOLE_TTY;
--- 305,311 ----

      if (!init_done)
        return(NULL);
!     if (unit >= MAXCONS || unit < 0)
        return(NULL);
      if (unit == MAXCONS)
        return CONSOLE_TTY;

\\\\////\\\\////\\\\\////\\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\
Frank Terhaar-Yonkers,  Manager
High Performance Computing and Communications Research
MCNC
PO Box 12889	3021 Cornwallis Road
Research Triangle Park,  North Carolina  27709-2889
fty@mcnc.org   voice (919)248-1417   FAX (919)248-1455

http://www.mcnc.org/hpcc.html



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