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 Rice 2003-01-29 02:43:35 +00:00
parent 912e44b663
commit a42a7e2f13
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110021

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;