*BSD News Article 16423


Return to BSD News archive

Xref: sserve comp.os.386bsd.development:784 comp.sys.dec:13296
Newsgroups: comp.os.386bsd.development,comp.sys.dec
Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!math.fu-berlin.de!easix!flyer!flatlin!bad
From: bad@flatlin.ka.sub.org (Christoph Badura)
Subject: Re: PPP on Ultrix, and interesting SLIP/PPP hacks
Organization: Guru Systems/Funware Department
Date: Sun, 23 May 1993 18:33:12 GMT
Message-ID: <C7HsvD.ICI@flatlin.ka.sub.org>
References: <explorer.737560955@tbird.cc.iastate.edu> <BDC.93May16151651@transit.ai.mit.edu> <9305170107.aa20908@post.demon.co.uk>
Lines: 32

In <9305170107.aa20908@post.demon.co.uk> damian@centrix.demon.co.uk (damian) writes:

>Yes it definately does work. I have done it for exactly the same reason.
>Here is a dirty hack to /sys/kern/tty_pty.c . It turns off all line
>discipline checking. I'm sure a kernel guru could come up with the
>correct hack^H^H^H^Hpatch.

How about:

*** tty_pty.c.orig	Mon May 17 00:59:29 1993
--- tty_pty.c	Sun Apr 11 18:32:06 1993
***************
*** 663,668 ****
  	 * the queues.  We can't tell anything about the discipline
  	 * from here...
  	 */
-  	if (linesw[tp->t_line].l_rint != ttyinput) {
  		(*linesw[tp->t_line].l_close)(tp, flag);
  		tp->t_line = TTYDISC;
--- 663,669 ----
  	 * the queues.  We can't tell anything about the discipline
  	 * from here...
  	 */
+  	if (linesw[tp->t_line].l_rint != ttyinput
+  		|| linesw[tp->t_line].l_rint != slinput) {
  		(*linesw[tp->t_line].l_close)(tp, flag);
  		tp->t_line = TTYDISC;
-- 
				Christoph Badura  ---  bad@flatlin.ka.sub.org

Personally, I don't care whether someone is cool enough to quote Doug
Gwyn--I only care whether Doug Gwyn is cool enough to quote. -- Larry Wall