Set the termios speed based on the tty speed. This allows consoles to work at

speeds other than TTYDEF_SPEED.

Approved by:	jake
This commit is contained in:
benno 2003-01-29 02:43:35 +00:00
parent 32565cb2b4
commit 74832facd0

View File

@ -487,7 +487,7 @@ zsttyopen(dev_t dev, int flags, int mode, struct thread *td)
* sticky bits from TIOCSFLAGS.
*/
t.c_ispeed = 0;
t.c_ospeed = TTYDEF_SPEED;
t.c_ospeed = tp->t_ospeed;
t.c_cflag = TTYDEF_CFLAG;
/* Make sure zstty_param() will do something. */
tp->t_ospeed = 0;