]> rtime.felk.cvut.cz Git - sojka/sterm.git/commitdiff
Fix disabling of flow control
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jan 2015 10:05:56 +0000 (11:05 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jan 2015 10:07:08 +0000 (11:07 +0100)
sterm.c

diff --git a/sterm.c b/sterm.c
index 407f6c26830ea4a8855546760d3baaa5a2cd954a..127dcea895deb8629b63265f915a640e6777f3c8 100644 (file)
--- a/sterm.c
+++ b/sterm.c
@@ -242,7 +242,9 @@ int main(int argc, char *argv[])
                        CHECK(ioctl(fd, TIOCMSET, &status));
                }
 
-               tio.c_cflag &= ~(CRTSCTS|IXON|IXOFF); /* Disable flow control */
+                /* Disable flow control */
+               tio.c_cflag &= ~(CRTSCTS);
+               tio.c_iflag &= ~(IXON|IXOFF);
 
                CHECK(tcsetattr(fd, TCSANOW, &tio));
        } else if (speed || dtr || rts) {