Fix a minor logical error in posix_io.c
authorMichael Brown <mcb30@etherboot.org>
Fri, 7 Dec 2007 00:52:48 +0000 (00:52 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 7 Dec 2007 00:52:48 +0000 (00:52 +0000)
src/core/posix_io.c

index 530ce65..27c7210 100644 (file)
@@ -264,7 +264,7 @@ int select ( fd_set *readfds, int wait ) {
                        if ( ! file )
                                return -EBADF;
                        if ( ( list_empty ( &file->data ) ) &&
                        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 );
                                continue;
                        /* Data is available or status has changed */
                        FD_ZERO ( readfds );