You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2004/12/05 18:31:40 UTC

svn commit: r109892 - /apr/apr/trunk/file_io/unix/readwrite.c

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