intermachine flocking

Lusercop `the.lusercop' at
Tue Dec 13 16:34:16 GMT 2005

On Tue, Dec 13, 2005 at 04:24:51PM +0000, Simon Wistow wrote:
> We have a farm of machines which will have access to a file. We only 
> want one of the machines accessing that file at once - if a process 
> cannot get a lock on the file then it should exit immediately otherwise 
> it shoudl write the necessary number of times to the file and then exit.
> Of course flock() doesn't work across NFS. Is the only solution to this 
> a flock daemon?

And you aren't using fcntl(2) and lockd(8) because...? (OK, I know that NFS
still has issues about locking, but this does basically work).

-- - LARTing Lusers everywhere since 2002

More information about the mailing list