in reply to Locking a file in NFS with proper exception handling
There are some interesting hacks for NFS that try to get around this that tend to rely on knowing that there are certain atomic operations in the NFS server like rename/link. Look at CPAN's File::NFSLock if you are interested in this. FWIW, I've never used it, but it sounds like it does something like this. Whatever solution you use make sure you test it thoroughly on the machine/server you expect it to work on.
|
|---|