diff options
author | Christopher Faylor <me@cgf.cx> | 2011-10-23 23:01:47 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-10-23 23:01:47 +0400 |
commit | 31d2bedc585420092eb53895c5f5646651f13215 (patch) | |
tree | 4e7ab98f866744fb5fd40c22db63a8113226df41 /winsup/cygwin/fhandler_tty.cc | |
parent | 1f012519e4954361e3f5c8ad4eab79cde57a510c (diff) |
* fhandler_tty.cc (fhandler_pty_slave::read): Use consistent way for testing
ReadFile return.
* pipe.cc (fhandler_pipe::create_selectable): Open the write side of the pipe
in message-mode to force writing as "chunks". Explain why.
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 f3a9a5f34..b019db046 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -812,7 +812,7 @@ fhandler_pty_slave::read (void *ptr, size_t& len) if (readlen) { termios_printf ("reading %d bytes (vtime %d)", readlen, vtime); - if (ReadFile (get_handle (), buf, readlen, &n, NULL) == FALSE) + if (!ReadFile (get_handle (), buf, readlen, &n, NULL)) { termios_printf ("read failed, %E"); raise (SIGHUP); |