diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-16 21:27:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-16 21:27:59 +0000 |
commit | 28f5619e842d4a4e03abe6f96d7f9fd5a70e223f (patch) | |
tree | 9d0e483b1b6b4c58be06aa5d611f739f2aa5fa9c /networking | |
parent | 53f219ebbe76ed0321ee9ec33336de2f70ece275 (diff) | |
download | busybox-w32-28f5619e842d4a4e03abe6f96d7f9fd5a70e223f.tar.gz busybox-w32-28f5619e842d4a4e03abe6f96d7f9fd5a70e223f.tar.bz2 busybox-w32-28f5619e842d4a4e03abe6f96d7f9fd5a70e223f.zip |
slattach: preserve speed in non-raw mode. +39 bytes.
by Matthieu CASTET (matthieu.castet AT parrot.com)
Diffstat (limited to 'networking')
-rw-r--r-- | networking/slattach.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/slattach.c b/networking/slattach.c index 52f7f3cff..d3212bb40 100644 --- a/networking/slattach.c +++ b/networking/slattach.c | |||
@@ -206,6 +206,8 @@ int slattach_main(int argc UNUSED_PARAM, char **argv) | |||
206 | state.c_cflag = CS8 | HUPCL | CREAD | 206 | state.c_cflag = CS8 | HUPCL | CREAD |
207 | | ((opt & OPT_L_local) ? CLOCAL : 0) | 207 | | ((opt & OPT_L_local) ? CLOCAL : 0) |
208 | | ((opt & OPT_F_noflow) ? 0 : CRTSCTS); | 208 | | ((opt & OPT_F_noflow) ? 0 : CRTSCTS); |
209 | cfsetispeed(&state, cfgetispeed(&saved_state)); | ||
210 | cfsetospeed(&state, cfgetospeed(&saved_state)); | ||
209 | } | 211 | } |
210 | 212 | ||
211 | if (opt & OPT_s_baud) { | 213 | if (opt & OPT_s_baud) { |