diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-06 18:02:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-06 18:02:56 +0000 |
commit | d0e406c6539d8c78515d85a253ea4b5365e57f3b (patch) | |
tree | 26eef365f858495a0c928109d91285fab101e7f1 | |
parent | e949606026a282fd780a44cd8d861995498b5920 (diff) | |
download | newlib-d0e406c6539d8c78515d85a253ea4b5365e57f3b.zip newlib-d0e406c6539d8c78515d85a253ea4b5365e57f3b.tar.gz newlib-d0e406c6539d8c78515d85a253ea4b5365e57f3b.tar.bz2 |
* select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_open
test.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/select.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b54b880..f6f9788 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 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; |