Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 1999 13:17:32 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        fullermd@futuresouth.com, sheldonh@uunet.co.za
Cc:        current@FreeBSD.ORG, gmarco@scotty.masternet.it
Subject:   Re:  Panic with screen w/info (was Re: Today's kernel crashes on starting X)
Message-ID:  <199905141717.NAA06110@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
It seems that screen was trying to flush the master pty, before the slave
tty was even open. We were lucky that this didn't crash our machines before
the dev_t changes, it only caused the console to be flushed instead. But
after the dev_t changes, it is fatal. Try this fix (band-aid only, better
fix should involve checking of TS_OPEN bit),

Index: tty_pty.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/tty_pty.c,v
retrieving revision 1.57
diff -u -r1.57 tty_pty.c
--- tty_pty.c	1999/05/08 06:39:43	1.57
+++ tty_pty.c	1999/05/14 16:51:58
@@ -336,6 +336,7 @@
 	tp = &pt_tty[minor(dev)];
 	if (tp->t_oproc)
 		return (EIO);
+	tp->t_dev = dev;
 	tp->t_oproc = ptsstart;
 #ifdef sun4c
 	tp->t_stop = ptsstop;

-lq


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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