summaryrefslogtreecommitdiffstats
path: root/sys/dev/zs
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2003-01-29 02:43:35 +0000
committerbenno <benno@FreeBSD.org>2003-01-29 02:43:35 +0000
commit15867362e4e7d727c275852226abf78944464f55 (patch)
tree98210138fa39964c6e10195c9bf6a8c0cecc5e43 /sys/dev/zs
parente99b3c8426571dc24ffc158a3f85b9d723df4dd5 (diff)
downloadFreeBSD-src-15867362e4e7d727c275852226abf78944464f55.zip
FreeBSD-src-15867362e4e7d727c275852226abf78944464f55.tar.gz
Set the termios speed based on the tty speed. This allows consoles to work at
speeds other than TTYDEF_SPEED. Approved by: jake
Diffstat (limited to 'sys/dev/zs')
-rw-r--r--sys/dev/zs/zs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 9836237..24e78d3 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -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;
OpenPOWER on IntegriCloud