* fhandler_tty.cc (fhandler_tty_slave::tcflush): Return either 0 or -1.
This commit is contained in:
parent
8cba692063
commit
c8f07ce787
@ -1,3 +1,7 @@
|
||||
2005-08-05 Vaclav Haisman <v.haisman@sh.cvut.cz>
|
||||
|
||||
* fhandler_tty.cc (fhandler_tty_slave::tcflush): Return either 0 or -1.
|
||||
|
||||
2005-08-05 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* thread.cc (pthread_cond_timedwait): Check abstime for validity
|
||||
|
@ -1051,7 +1051,7 @@ fhandler_tty_slave::tcflush (int queue)
|
||||
{
|
||||
size_t len = UINT_MAX;
|
||||
read (NULL, len);
|
||||
ret = ((int) len) >= 0;
|
||||
ret = ((int) len) >= 0 ? 0 : -1;
|
||||
}
|
||||
if (queue == TCOFLUSH || queue == TCIOFLUSH)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user