Re: [squid-users] squid`s access.log

From: Henrik Nordstrom <[email protected]>
Date: Thu, 20 Feb 2003 09:13:59 +0100

On Thursday 20 February 2003 08.00, Ilya wrote:
> Hello!
>
> When squid change access.log, does it use any locks ( using
> for example lockf() or fcntl() )?

No, but it only appends to the file, and the log is structured with
line records. Squid always writes complete records ending in newline.

> I develop real time log-analyzer, so I want to solve the
> problem when squid is writing and my analyzer is reading.

If in doubt, wait to process the last read line until the terminating
newline character is found.

Regards
Henrik
Received on Thu Feb 20 2003 - 01:12:36 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:30 MST