diff options
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 642f5ca..d74ddbc 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -815,7 +815,7 @@ fhandler_tty_slave::read (void *ptr, size_t& len) if (!ptr && len == UINT_MAX) len = (size_t) bytes_in_pipe; - if (ptr && !vmin && !time_to_wait) + if (ptr && !bytes_in_pipe && !vmin && !time_to_wait) { ReleaseMutex (input_mutex); len = (size_t) bytes_in_pipe; |