* fhandler_tty.cc (fhandler_tty_slave::read): Use previously

evaluated time_to_wait value.
This commit is contained in:
Corinna Vinschen 2004-10-07 08:03:24 +00:00
parent 72db1c11e9
commit b9cd8fb5ff
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-07 Mark Paulus <mark.paulus@mci.com>
* fhandler_tty.cc (fhandler_tty_slave::read): Use previously
evaluated time_to_wait value.
2004-10-05 Pierre Humblet <pierre.humblet@ieee.org>
* external.cc (check_ntsec): Do not call wincap.has_security.

View File

@ -765,7 +765,7 @@ fhandler_tty_slave::read (void *ptr, size_t& len)
w4[0] = signal_arrived;
w4[1] = input_available_event;
DWORD waiter = !ptr ? 0 : INFINITE;
DWORD waiter = time_to_wait;
while (len)
{
rc = WaitForMultipleObjects (2, w4, FALSE, waiter);