* 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.
This commit is contained in:
Christopher Faylor
2005-09-09 02:53:40 +00:00
parent b10ab72581
commit c0df672fa0
3 changed files with 15 additions and 1 deletions

View File

@ -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);