diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ac3b8ac55..8ded61409 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-10-07 Mark Paulus + + * fhandler_tty.cc (fhandler_tty_slave::read): Use previously + evaluated time_to_wait value. + 2004-10-05 Pierre Humblet * external.cc (check_ntsec): Do not call wincap.has_security. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 350638176..c64aac77e 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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);