Some background information gleaned from various system manpages and perl
function docs:
- Perl flock calls system flock(2) when it is available
- NFS locking has to be done through fcntl(2), not through flock(2).
- If the system does not have flock(2), Perl flock tries it's best to emulate it using whatever method is necessary, including fcntl(2).
This seems to mean to me that if you live on a system that has flock(2), you have to use Perl's
fcntl to do locking on files on an NFS filesystem.
You also know by now that locking over NFS is not very robust. It is essentially a rickety superstructure on top of almost non existing foundations, as NFS is designed to be stateless, which mixes with concepts such as locking as elegantly as a camel dances the Tango with an elephant. Beware of dragons.
CU
Robartes-