in reply to Re: Using flock() on files
in thread Using flock() on files

locks will be maintained even if your server/client crashes and is then restarted

This is not necessarily an advantage. You need a way to break old, stale locks that might be left behind after a crash.

Replies are listed 'Best First'.
Re: Re: Re: Using flock() on files
by perlplexer (Hermit) on Apr 20, 2003 at 14:13 UTC
    I view this as an advantage because I'd rather have the locks stay than have corrupt data. You can easily write a tool for cleaning up old locks; writing a tool for restoring corrupt data, however, may not even be possible depending on what kind of data you're dealing with.

    --perlplexer