From 1ee1d694cf33ff6fe01f471719fca7ee6d062f59 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 2 Oct 2006 20:52:57 +0000 Subject: [PATCH] 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] --- unix/uxser.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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