apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject [patch unix/readwrite.c] a bug fix for apr_file_read
Date Wed, 17 Apr 2002 08:53:28 GMT
without this patch, while(!apr_file_eof(...)) spins for unbuffered fh. 
I've visually checked apr_file_read in win and os2 implementations, but 
please verify for a similar bug.

Index: srclib/apr/file_io/unix/readwrite.c
===================================================================
RCS file: /home/cvspublic/apr/file_io/unix/readwrite.c,v
retrieving revision 1.77
diff -u -r1.77 readwrite.c
--- srclib/apr/file_io/unix/readwrite.c	15 Mar 2002 02:25:00 -0000	1.77
+++ srclib/apr/file_io/unix/readwrite.c	17 Apr 2002 08:43:57 -0000
@@ -207,6 +207,7 @@
  #endif
          *nbytes = bytes_read;
          if (rv == 0) {
+            thefile->eof_hit = TRUE;
              return APR_EOF;
          }
          if (rv > 0) {


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message