apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r109892 - /apr/apr/trunk/file_io/unix/readwrite.c
Date Sun, 05 Dec 2004 17:31:40 GMT
Author: pquerna
Date: Sun Dec  5 09:31:39 2004
New Revision: 109892

URL: http://svn.apache.org/viewcvs?view=rev&rev=109892
Log:
* file_io/unix/readwrite.c: Revert back to using apr_file_write, but also leave
                            the function if tbytes < vec[i].iov_len, as Jeff 
                            Trawick suggested on dev@apr.

Modified:
   apr/apr/trunk/file_io/unix/readwrite.c

Modified: apr/apr/trunk/file_io/unix/readwrite.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/unix/readwrite.c?view=diff&rev=109892&p1=apr/apr/trunk/file_io/unix/readwrite.c&r1=109891&p2=apr/apr/trunk/file_io/unix/readwrite.c&r2=109892
==============================================================================
--- apr/apr/trunk/file_io/unix/readwrite.c	(original)
+++ apr/apr/trunk/file_io/unix/readwrite.c	Sun Dec  5 09:31:39 2004
@@ -248,10 +248,12 @@
     *nbytes = 0;
 
     for(i = 0; i < nvec; i++) {
-         rv = apr_file_write_full(thefile, vec[i].iov_base, vec[i].iov_len, &tbytes);
+         tbytes = vec[i].iov_len;
+         rv = apr_file_write(thefile, vec[i].iov_base, &tbytes);
          *nbytes += tbytes;
-         if(rv != APR_SUCCESS)
+         if(rv != APR_SUCCESS || tbytes < vec[i].iov_len) {
              break;
+         }
     }
     return rv;
 #endif

Mime
View raw message