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
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-06 21:02:56 +0300
committerChristopher Faylor <me@cgf.cx>2001-11-06 21:02:56 +0300
commitd0e406c6539d8c78515d85a253ea4b5365e57f3b (patch)
tree26eef365f858495a0c928109d91285fab101e7f1
parente949606026a282fd780a44cd8d861995498b5920 (diff)
* select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_open
test.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/select.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b54b88012..f6f9788aa 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-06 Christopher Faylor <cgf@redhat.com>
+
+ * select.cc (fhandler_tty_slave::ready_for_read): Correct inverted
+ not_open test.
+
2001-11-05 Christopher Faylor <cgf@redhat.com>
* include/cygwin/version.h: Bump version to 1.3.5.
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 7b3fc32a4..50582727d 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -778,7 +778,7 @@ int
fhandler_tty_slave::ready_for_read (int fd, DWORD howlong)
{
HANDLE w4[2];
- if (!cygheap->fdtab.not_open (fd))
+ if (cygheap->fdtab.not_open (fd))
{
set_errno (EBADF);
return 1;