summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/termios.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-09-09 03:00:34 +0000
committerChristopher Faylor <me@cgf.cx>2005-09-09 03:00:34 +0000
commit270bbd4e249938a2ccdbcec90af46ce56793fad3 (patch)
tree4e086885cd4e87c52fb96fa27d1cce665447d48d /winsup/cygwin/termios.cc
parentc0df672fa07d54e1dae5fd3b41f5a704e9080801 (diff)
downloadcygnal-270bbd4e249938a2ccdbcec90af46ce56793fad3.tar.gz
cygnal-270bbd4e249938a2ccdbcec90af46ce56793fad3.tar.bz2
cygnal-270bbd4e249938a2ccdbcec90af46ce56793fad3.zip
* fhandler_serial.cc (fhandler_serial::tcgetattr): Just zero c_cflag here
rather than clearing CBAUD after the fact.
Diffstat (limited to 'winsup/cygwin/termios.cc')
-rw-r--r--winsup/cygwin/termios.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/termios.cc b/winsup/cygwin/termios.cc
index e6a6517f2..6e0ab3e9f 100644
--- a/winsup/cygwin/termios.cc
+++ b/winsup/cygwin/termios.cc
@@ -179,10 +179,7 @@ tcgetattr (int fd, struct termios *in_t)
else if (!cfd->is_tty ())
set_errno (ENOTTY);
else if ((res = cfd->tcgetattr (t)) == 0)
- {
- t->c_cflag &= ~CBAUD;
- __toapp_termios (in_t, t);
- }
+ __toapp_termios (in_t, t);
if (res)
termios_printf ("%d = tcgetattr (%d, %p)", res, fd, in_t);