Subject: Re: tty0?
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: NetBSD <netbsd@gate.ene.UnB.br>
List: current-users
Date: 06/22/1996 17:38:09
On Sat, 22 Jun 1996, Jukka Marin wrote:

> > This is sort of a religious war; some operating systems keep the state
> > between device closes, others reset it.  I see the advantages to each,
> > but I think I prefer the "reset to known state" mode.
> 
> Absolutely.  How would dial-in tty lines work at all if someone mangled
> the tty flags and logged off - the flags would stay wrong forever.  I
> feel the flags _must_ be reset when the device is closed.
> 
>   -jm
> 
> 

If someone logs-off, won't the carrier detect drop causing a sighup on 
processes associated with that tty? getty would then reset the tty 
structure to its default values, once it knows how to deal with serial 
lines.

Doesn't it seem reasonable?