From 6aaa4395935ecb0f366015e729afe185f9b53fdb Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Mon, 15 Aug 2005 11:31:39 +0000 Subject: [PATCH] - Fixed to built properly. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15017 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/socket_select.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/library/socket_select.c b/library/socket_select.c index d5eda1f..4f35fa2 100644 --- a/library/socket_select.c +++ b/library/socket_select.c @@ -1,5 +1,5 @@ /* - * $Id: socket_select.c,v 1.13 2005-08-15 10:43:54 obarthel Exp $ + * $Id: socket_select.c,v 1.14 2005-08-15 11:31:39 obarthel Exp $ * * :ts=4 * @@ -809,12 +809,14 @@ select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struct { if(FLAG_IS_SET(fd->fd_Flags,FDF_CACHE_POSITION)) { - if((ULONG)fib->fib_FileSize > fd->fd_Position) + /* Is there new data to read? */ + if((ULONG)fib->fib_Size > fd->fd_Position) got_input = TRUE; } else { - if(fib->fib_FileSize != 0) + /* Does the pipe contain any data to read? */ + if(fib->fib_Size != 0) got_input = TRUE; } } @@ -989,12 +991,12 @@ select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struct { if(FLAG_IS_SET(fd->fd_Flags,FDF_CACHE_POSITION)) { - if((ULONG)fib->fib_FileSize > fd->fd_Position) + if((ULONG)fib->fib_Size > fd->fd_Position) got_input = TRUE; } else { - if(fib->fib_FileSize != 0) + if(fib->fib_Size != 0) got_input = TRUE; } }