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

Reply via email to