httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "christopher justin" <>
Subject Re: file locking log files ?
Date Mon, 28 Apr 2003 23:41:37 GMT
thanks so much..  Interesting, the man pages don't speak of the atomic 
action with O_APPEND.

>From: "William A. Rowe, Jr." <>
>Subject: Re: file locking log files ?
>Date: Mon, 28 Apr 2003 15:13:12 -0500
>Files open for APPEND, write on unix should write atomically to the file.
>On Win32 in apr/file_io for Apache2 we set up our own locking to do the
>same sort of thing.  As far as cross-machine locking, I dunno, but this
>has historically been sufficient for one machine/cross-process log files.
>At 01:32 PM 4/28/2003, christopher justin wrote:
> >hi list,
> >
> >In looking at http_log.c and alloc.c , I don't see any code that actually 
>does file locking when logging to log files.  Does the logging mechanism 
>lock the standard log files before writing ?
> >
> >I am writing an Apache module that needs to do its own custom Log 
>format.. I was hoping the Apache logging API provided file locking so that 
>I do not have to worry about it.
> >
> >If there is locking that I cannot find in the code, how is the file 
>locking different from Version 1.3.x to 2.x?
> >
> >thanks for any help.
> >
> >_________________________________________________________________
> >Protect your PC - get VirusScan Online
> >
> >

Add photos to your messages with MSN 8. Get 2 months FREE*.

View raw message