From: simon Date: Mon, 2 Oct 2006 20:52:57 +0000 (+0000) Subject: IXON and IXOFF belong in _iflag_, not cflag! While I'm here, be more X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e26f8aa1a74344b91737741ecef89a10de0fa241 IXON and IXOFF belong in _iflag_, not cflag! While I'm here, be more reliable in clearing of RTS/CTS flags. git-svn-id: svn://svn.tartarus.org/sgt/putty@6864 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxser.c b/unix/uxser.c index db98dd87..463f4c43 100644 --- a/unix/uxser.c +++ b/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