Subject: Re: CVS commit: src
To: Charles M. Hannum <mycroft@MIT.EDU>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: current-users
Date: 08/09/1998 11:39:56
On Sun, 9 Aug 1998, Charles M. Hannum wrote:

> 
> >Modified Files:
> >        src/sys/dev/ic: z8530tty.c
> >Log Message:
> >Initialize the struct tty's t_dev field at attach rather than first open.
> 
> So, regardless of your other concerns, this behaviour was intentional!
> It meant that `pstat -t' would show the correct one of ttyXX or cuaXX
> depending on which was open.

Doh!

Then the best thing to do is initialize it in both places, isn't it?
I just put the tp->t_dev = dev; fragment back into the first open area of
zsopen, and left the setting of it in the attach routine. If more thought
is needed, let me know.

I thought one of the reasons for dial-out lines was so that you could have
a getty waiting on a ttyXX hooked to a modem, and if no one's there, you
could fire up the cuaXX and send a fax out to someone.

Since we have only one struct tty per port, as I understand it, the getty
would now magically appear to be accessing cuaXX, rather than ttyXX. ?? Do
we just accept this perculiarity?

Take care,

Bill