httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/win32 readwrite.c
Date Wed, 19 Apr 2000 18:38:33 GMT
stoddard    00/04/19 11:38:33

  Modified:    src/lib/apr/file_io/win32 readwrite.c
  Log:
  Win32: A little tweak to make writing to the error logs a bit happier.
  Ultimately, I think we need some form of cross process locking (LockFile
  or LockFileEx) to make SetFilePointer and WriteFile atomic.
  
  Revision  Changes    Path
  1.27      +3 -0      apache-2.0/src/lib/apr/file_io/win32/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/readwrite.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- readwrite.c	2000/04/19 17:42:07	1.26
  +++ readwrite.c	2000/04/19 18:38:32	1.27
  @@ -91,6 +91,9 @@
       ap_status_t rv;
       DWORD bwrote;
   
  +    if (!thefile->pipe) {
  +        SetFilePointer(thefile->filehand, 0, NULL, FILE_END);
  +    }
       if (WriteFile(thefile->filehand, buf, *nbytes, &bwrote, NULL)) {
           *nbytes = bwrote;
           rv = APR_SUCCESS;
  
  
  

Mime
View raw message