mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -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:
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);
|
||||
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) {
|
||||
options.c_cflag |= IXON | IXOFF;
|
||||
options.c_iflag |= IXON | IXOFF;
|
||||
str = "XON/XOFF";
|
||||
} else if (cfg->serflow == SER_FLOW_RTSCTS) {
|
||||
#ifdef CRTSCTS
|
||||
|
Reference in New Issue
Block a user