mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
IXON and IXOFF belong in _iflag_, not cflag! While I'm here, be more
reliable in clearing of RTS/CTS flags. [originally from svn r6864]
This commit is contained in:
parent
a2338cb6f2
commit
1ee1d694cf
10
unix/uxser.c
10
unix/uxser.c
@ -162,9 +162,15 @@ static const char *serial_configure(Serial serial, Config *cfg)
|
|||||||
logevent(serial->frontend, msg);
|
logevent(serial->frontend, msg);
|
||||||
sfree(msg);
|
sfree(msg);
|
||||||
|
|
||||||
options.c_cflag &= ~(IXON|IXOFF);
|
options.c_iflag &= ~(IXON|IXOFF);
|
||||||
|
#ifdef CRTSCTS
|
||||||
|
options.c_cflag &= ~CRTSCTS;
|
||||||
|
#endif
|
||||||
|
#ifdef CNEW_RTSCTS
|
||||||
|
options.c_cflag &= ~CNEW_RTSCTS;
|
||||||
|
#endif
|
||||||
if (cfg->serflow == SER_FLOW_XONXOFF) {
|
if (cfg->serflow == SER_FLOW_XONXOFF) {
|
||||||
options.c_cflag |= IXON | IXOFF;
|
options.c_iflag |= IXON | IXOFF;
|
||||||
str = "XON/XOFF";
|
str = "XON/XOFF";
|
||||||
} else if (cfg->serflow == SER_FLOW_RTSCTS) {
|
} else if (cfg->serflow == SER_FLOW_RTSCTS) {
|
||||||
#ifdef CRTSCTS
|
#ifdef CRTSCTS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user