[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: flock, fcntl, lockf?



On Mon, Jan 14, 2008 at 03:34:27PM +0000, Hendrik Boom wrote:
> What's the right way these days to lock a file (or possibly a part of a
> file) to prevent damage from simultaneous writing?

My impression is that file locking is based on all participants following
the same convention, whatever it is, so the right way would be whatever
other programs that might be operating on the same files are doing.

-- 
Ken Irving, fnkci+debianuser@uaf.edu


Reply to: