Nigel> Give flock a decent burial - dig deep and pile the crap high over it!
Nigel> fcntl is the Linux locking mechanism of choice. Flock is emulated Nigel> (badly) by libc.