Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 30056 invoked from network); 15 Feb 2006 18:45:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 18:45:42 -0000 Received: (qmail 18713 invoked by uid 500); 15 Feb 2006 18:45:41 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 18680 invoked by uid 500); 15 Feb 2006 18:45:41 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 18669 invoked by uid 99); 15 Feb 2006 18:45:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 10:45:41 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 15 Feb 2006 10:45:40 -0800 Received: (qmail 29856 invoked by uid 65534); 15 Feb 2006 18:45:16 -0000 Message-ID: <20060215184516.29853.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r378054 - /apr/apr/branches/1.2.x/file_io/win32/readwrite.c Date: Wed, 15 Feb 2006 18:45:16 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: wrowe Date: Wed Feb 15 10:45:14 2006 New Revision: 378054 URL: http://svn.apache.org/viewcvs?rev=378054&view=rev Log: Backport: 378053 Sync Win32 behavior with Unix behavior for unbuffered file i/o on apr_file_flush(). Note this also makes unbuffered file i/o on win32 consistent with the buffered i/o behavior on the same. PR: 33485 Reported by: Curt Arnold . Modified: apr/apr/branches/1.2.x/file_io/win32/readwrite.c Modified: apr/apr/branches/1.2.x/file_io/win32/readwrite.c URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/file_io/win32/readwrite.c?rev=378054&r1=378053&r2=378054&view=diff ============================================================================== --- apr/apr/branches/1.2.x/file_io/win32/readwrite.c (original) +++ apr/apr/branches/1.2.x/file_io/win32/readwrite.c Wed Feb 15 10:45:14 2006 @@ -482,10 +482,12 @@ } return rc; - } else { - FlushFileBuffers(thefile->filehand); - return APR_SUCCESS; } + + /* There isn't anything to do if we aren't buffering the output + * so just return success. + */ + return APR_SUCCESS; } struct apr_file_printf_data {