Re: RFC: locking policy for Debian

1997-05-25 Thread Christian Schwarz
On Sat, 24 May 1997, Karl M. Hegbloom wrote: > > "Christian" == Christian Schwarz <[EMAIL PROTECTED]> writes: > > Christian> If I remember right someone else posted a Perl example > Christian> for right file locking--but I can't find it. > > I did... it's at http://inetarena.com/~k

Re: RFC: locking policy for Debian

1997-05-24 Thread Karl M. Hegbloom
> "Christian" == Christian Schwarz <[EMAIL PROTECTED]> writes: Christian> If I remember right someone else posted a Perl example Christian> for right file locking--but I can't find it. I did... it's at http://inetarena.com/~karlheg/Public>. I don't know if it's _really_ the correc

Re: RFC: locking policy for Debian

1997-05-24 Thread Guy Maor
Christian Schwarz <[EMAIL PROTECTED]> writes: > AFAIK, the only way to lock a file (even reliable over NFS) is to create > another file with a unique filename, e.g. foo.lock-ipaddress-processid, > and create a link say to foo.lock. The "link" function is atomic per > definition, even via NFS and w

Re: RFC: locking policy for Debian

1997-05-24 Thread Manoj Srivastava
Hi, I agree, though I think we can do better than provide a few example for perl and python -- we could provide a library to do file locking. (I have a general purpose mutex based class library (I also have a C implementation) for POSIX and DCE Threads, though I'll have to see if I ca