Subject: Re: chat problems with tty
To: None <port-i386@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 05/23/2005 16:03:54
> stty <whatever> </dev/dty01 runs and refuses to set anything. Exit
> code is 0.
More likely it's setting it just fine, but when it exits, nothing has
the tty open any longer so the settings are promptly reset back to some
kernel defaults. (I've had run-ins with this phenomenon myself.)
> /root# ls -l /dev/tty01
> crw-rw-rw- 1 uucp wheel 8, 1 May 21 03:50 /dev/tty01
> /root# ls -l /dev/dty01
> crw-rw-rw- 1 uucp wheel 8, 524289 May 21 03:49 /dev/dty01
> ^^^^^^is this not supposed to be 1?
No; if it were 1, there would be no difference between /dev/tty01 and
/dev/dty01. The driver in question presumably pays attention to the
524288 bit of the minor device number.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B