From: Denis Vlasenko Date: Tue, 16 Sep 2008 21:27:59 +0000 (-0000) Subject: slattach: preserve speed in non-raw mode. +39 bytes. X-Git-Tag: 1_13_0~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28f5619e842d4a4e03abe6f96d7f9fd5a70e223f;p=platform%2Fupstream%2Fbusybox.git slattach: preserve speed in non-raw mode. +39 bytes. by Matthieu CASTET (matthieu.castet AT parrot.com) --- diff --git a/networking/slattach.c b/networking/slattach.c index 52f7f3c..d3212bb 100644 --- a/networking/slattach.c +++ b/networking/slattach.c @@ -206,6 +206,8 @@ int slattach_main(int argc UNUSED_PARAM, char **argv) state.c_cflag = CS8 | HUPCL | CREAD | ((opt & OPT_L_local) ? CLOCAL : 0) | ((opt & OPT_F_noflow) ? 0 : CRTSCTS); + cfsetispeed(&state, cfgetispeed(&saved_state)); + cfsetospeed(&state, cfgetospeed(&saved_state)); } if (opt & OPT_s_baud) {