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

Re: flock, fcntl, lockf?



On Mon, 14 Jan 2008 08:17:53 -0900, Ken Irving wrote:

> 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.
>

Yes.  Exactly.  I'm writing new software, so I have a bit of a choice.  My
question involves both technical issues and the latest fashion trends in
the file locking community.

-- hendrik


Reply to: