mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 04:28:57 +00:00
slattach: preserve speed in non-raw mode. +39 bytes.
by Matthieu CASTET (matthieu.castet AT parrot.com)
This commit is contained in:
parent
53f219ebbe
commit
28f5619e84
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user