* fhandler_serial.cc (fhandler_serial::tcgetattr): Don't take any special
action when vmin_ == 0.
This commit is contained in:
parent
540d550a38
commit
d4990113a1
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user