summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels.c b/channels.c
index efb04d655..e8b8aa07e 100644
--- a/channels.c
+++ b/channels.c
@@ -1653,6 +1653,7 @@ channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
1653 } 1653 }
1654 return -1; 1654 return -1;
1655 } 1655 }
1656#ifndef BROKEN_TCGETATTR_ICANON
1656 if (compat20 && c->isatty && dlen >= 1 && buf[0] != '\r') { 1657 if (compat20 && c->isatty && dlen >= 1 && buf[0] != '\r') {
1657 if (tcgetattr(c->wfd, &tio) == 0 && 1658 if (tcgetattr(c->wfd, &tio) == 0 &&
1658 !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) { 1659 !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) {
@@ -1666,6 +1667,7 @@ channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
1666 packet_send(); 1667 packet_send();
1667 } 1668 }
1668 } 1669 }
1670#endif
1669 buffer_consume(&c->output, len); 1671 buffer_consume(&c->output, len);
1670 if (compat20 && len > 0) { 1672 if (compat20 && len > 0) {
1671 c->local_consumed += len; 1673 c->local_consumed += len;