Subject: How to get a tty out of SLIP line discipline?
To: None <current-users@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: current-users
Date: 05/18/2001 12:38:46
I was playing around with sliplogin yesterday, and things were not
working very well. So I killed -HUP sliplogin with the intention to get
the tty back to normal, but somehow it didn't. (Previously, the tty went
back to normal when sliplogin terminated, even though I cannot find any
code in sliplogin that does that explcitly.) The tty remained in SLIP
line discipline mode. stty -f /dev/ttyC0 told me that. So I tried stty
-f /dev/ttyC0 tty, because the stty(1) tells us that
tty Set the line discipline to the standard terminal line disci-
pline TTYDISC.
But it didn't work. I checked and there was nothing but the original
shell that had ttyC0 open, the sl0 device was taken down (address and
route removed), nothing that I checked still referred to the SLIP
functionality.
I finally rebooted, but there must be a better way?
-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder --Soep van de dag, wat zal dat zijn
\X/ land.nl --wat kan dat wezen, beter maar het ergste vrezen -Boy Bensdorp