aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-06 18:09:42 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-06 18:09:42 +0000
commita21a407c7e76651b66e1579e96633804668848fd (patch)
tree850be51f5c6c4e91daad924b37abde2ba7ce2994
parenta8b0e21a4223a10435885faa25e5449edd237661 (diff)
downloadnewlib-a21a407c7e76651b66e1579e96633804668848fd.zip
newlib-a21a407c7e76651b66e1579e96633804668848fd.tar.gz
newlib-a21a407c7e76651b66e1579e96633804668848fd.tar.bz2
* select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_open
test.
-rw-r--r--winsup/cygwin/select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 7b3fc32..5058272 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;