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

Corinna Vinschen corinna@sourceware.org
Mon Feb 15 12:30:00 GMT 2016


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;
 }



More information about the Cygwin-cvs mailing list