From: Michael Brown Date: Fri, 7 Dec 2007 00:52:48 +0000 (+0000) Subject: Fix a minor logical error in posix_io.c X-Git-Tag: v0.9.3~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=698b5bc887109c90ab4e6ff5bb65189f639d972b;p=thirdparty%2Fipxe.git Fix a minor logical error in posix_io.c --- diff --git a/src/core/posix_io.c b/src/core/posix_io.c index 530ce6511..27c72100c 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 );