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; } }