465 shaares
On the futility of Unix file locks (especially on networked file systems).
Note that Linux 3.15 introduced "open file description locks" to fcntl, which combines the semantics of BSD flock (lock associated with open file) with the record-locking and NFS-compatibility of fcntl. That solves everything except for portability.