* 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:
@ -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);
|
||||
|
Reference in New Issue
Block a user