slattach: preserve speed in non-raw mode. +39 bytes.

by Matthieu CASTET (matthieu.castet AT parrot.com)
This commit is contained in:
Denis Vlasenko 2008-09-16 21:27:59 +00:00
parent 53f219ebbe
commit 28f5619e84

View File

@ -206,6 +206,8 @@ int slattach_main(int argc UNUSED_PARAM, char **argv)
state.c_cflag = CS8 | HUPCL | CREAD state.c_cflag = CS8 | HUPCL | CREAD
| ((opt & OPT_L_local) ? CLOCAL : 0) | ((opt & OPT_L_local) ? CLOCAL : 0)
| ((opt & OPT_F_noflow) ? 0 : CRTSCTS); | ((opt & OPT_F_noflow) ? 0 : CRTSCTS);
cfsetispeed(&state, cfgetispeed(&saved_state));
cfsetospeed(&state, cfgetospeed(&saved_state));
} }
if (opt & OPT_s_baud) { if (opt & OPT_s_baud) {