The problem is that flock may indeed work for the common case so your test won't necessarily report a problem. Keep in mind that even Sun, the infamous inventor of the NFS protocol, has had problems in the past where they swore they fixed the locking, but didn't.
There are other ways of locking over NFS, but these tend to be crufty and rely on knowing that certain operations are atomic in the NFS server.
In reply to Re: Flock() over NFS
by bluto
in thread Flock() over NFS
by moseley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |