diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-09 06:53:40 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-09 06:53:40 +0400 |
commit | c0df672fa07d54e1dae5fd3b41f5a704e9080801 (patch) | |
tree | 98b0d0ce9dffc796f5ac27ca75eb0a901d3a028b /winsup/cygwin/termios.cc | |
parent | b10ab72581173784a6687739e44c02d940e009c9 (diff) |
* fhandler_serial.cc (fhandler_serial::ioctl): Always return 0 for window size.
* termios.cc (tcgetattr): Clear out baud part of c_cflag since it is always
ignored.
Diffstat (limited to 'winsup/cygwin/termios.cc')
-rw-r--r-- | winsup/cygwin/termios.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/termios.cc b/winsup/cygwin/termios.cc index 6e0ab3e9f..e6a6517f2 100644 --- a/winsup/cygwin/termios.cc +++ b/winsup/cygwin/termios.cc @@ -179,7 +179,10 @@ tcgetattr (int fd, struct termios *in_t) else if (!cfd->is_tty ()) set_errno (ENOTTY); else if ((res = cfd->tcgetattr (t)) == 0) - __toapp_termios (in_t, t); + { + t->c_cflag &= ~CBAUD; + __toapp_termios (in_t, t); + } if (res) termios_printf ("%d = tcgetattr (%d, %p)", res, fd, in_t); |