This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Make buffered console characters visible to select().


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7eb13b33e48d3e3299eed8214188aa022f81e091

commit 7eb13b33e48d3e3299eed8214188aa022f81e091
Author: John Hood <cgull@glup.org>
Date:   Sat Jan 30 17:36:43 2016 -0500

    Make buffered console characters visible to select().

Diff:
---
 winsup/cygwin/select.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 979b0b0..e1d48a3 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -916,7 +916,7 @@ fhandler_console::select_read (select_stuff *ss)
   s->peek = peek_console;
   s->h = get_handle ();
   s->read_selected = true;
-  s->read_ready = false;
+  s->read_ready = get_readahead_valid();
   return s;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]