1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00: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:
Simon Tatham 2006-10-02 20:52:57 +00:00
parent a2338cb6f2
commit 1ee1d694cf

View File

@ -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