intermachine flocking

Aaron Crane perl at aaroncrane.co.uk
Tue Dec 13 16:44:30 GMT 2005


Simon Wistow writes:
> Of course flock() doesn't work across NFS. Is the only solution to this 
> a flock daemon?

Would File::NFSLock help?

Also, I understand that if your Perl is built so that flock() actually
calls fcntl(2), and if you've got NFS locking set up on all the machines
in question, flock() will actually work even over NFS.  I'm not sure how
often both of those are simultaneously true, though.

-- 
Aaron Crane


More information about the london.pm mailing list