summaryrefslogtreecommitdiffstats
path: root/src/core/posix_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/posix_io.c')
-rw-r--r--src/core/posix_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index 530ce651..27c72100 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -264,7 +264,7 @@ int select ( fd_set *readfds, int wait ) {
if ( ! file )
return -EBADF;
if ( ( list_empty ( &file->data ) ) &&
- ( file->rc != -EINPROGRESS ) )
+ ( file->rc == -EINPROGRESS ) )
continue;
/* Data is available or status has changed */
FD_ZERO ( readfds );