Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-02 04:17:45 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-02 04:17:45 +0400
commitb9b1b38358983f564e48ced1a9a599698e1be36f (patch)
treef1722ddd086453098136ed5af60ebe0ad78d7f46 /winsup
parent0d235234c5dd24d552cad60fe885230a6a3b6ec4 (diff)
* fhandler_tty.cc (fhandler_tty_slave::read): Actually read input when vmin ==
vtime == 0.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0e687757f..75f327b37 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-01 Christopher Faylor <cgf@timesys.com>
+
+ * fhandler_tty.cc (fhandler_tty_slave::read): Actually read input when
+ vmin == vtime == 0.
+
2005-04-30 Christopher Faylor <cgf@timesys.com>
* environ.cc (spenv::force_into_environment): Rename from add_always.
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 642f5ca80..d74ddbc59 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;