* fhandler_serial.cc (fhandler_serial::tcgetattr): Don't take any special

action when vmin_ == 0.
This commit is contained in:
Christopher Faylor 2002-11-15 02:12:36 +00:00
parent 540d550a38
commit d4990113a1
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2002-11-14 Christopher Faylor <cgf@redhat.com>
* fhandler_serial.cc (fhandler_serial::tcgetattr): Don't take any
special action when vmin_ == 0.
2002-11-14 Corinna Vinschen <corinna@vinschen.de>
* grp.cc (getgroups32): Revert previous patch. Use impersonation

View File

@ -985,17 +985,10 @@ fhandler_serial::tcgetattr (struct termios *t)
if (!get_w_binary ())
t->c_oflag |= ONLCR;
t->c_cc[VTIME] = vtime_ / 100;
t->c_cc[VMIN] = vmin_;
debug_printf ("vmin_ %d, vtime_ %d", vmin_, vtime_);
if (vmin_ == 0)
{
t->c_lflag |= ICANON;
t->c_cc[VTIME] = t->c_cc[VMIN] = 0;
}
else
{
t->c_cc[VTIME] = vtime_ / 100;
t->c_cc[VMIN] = vmin_;
}
return 0;
}