in reply to Testing if your code successfully flocked

Remember, even once you have a test working, that flock() is not infallible, that there are no warranties or guarantees that the lock will be enforced or visible to any or all systems able to see that filesystem. NFS, SMB, or even just different architectures may fail to honor a flock().

--
[ e d @ h a l l e y . c c ]