On Mon, 10 Jun 2002, Bill Moseley wrote:

> >You are correct to worry.  You should use flock() to prevent your log file
> >from becoming corrupted.  See "perldoc -f flock()" for more details.
>
> Maybe it's a matter of volume.  Or size of string written to the log.  But
> I don't flock, and I keep the log file open between requests and only
> reopen if stat() shows that the file was renamed.  So far been lucky.

Nope, just plain luck.  Keep it running long enough without locking and
you will eventually have a corrupted log file.

-sam


Reply via email to