Do remember that file locking is not supported on some platforms, is not a protection against applications which don't use the same flavor of file locking, and even when all that is okay, it's still just advisory in nature.
To perform a stronger locking scheme, just rename the file to something else during your operation. Of course, if your process crashes and never renames the file, it can be a mess to recover.
--
[ e d @ h a l l e y . c c ]
In reply to Re: IO::Zlib and flock
by halley
in thread IO::Zlib and flock
by hardburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |