Re: RFC: locking policy for Debian

1997-05-25 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 URL:http://inetarena.com/~karlheg/Public. I don't know if it's _really_ the correct way

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

RFC: locking policy for Debian

1997-05-24 Thread Christian Schwarz
Hi folks! I'm just working on a new Policy manual and discovered that we don't have a (working) locking policy right now. AFAIK, this issue came up two times here on debian-devel (about end of Jan 97 and beginning Feb 97) and was about email folder locking and locking of /etc/passwd. AFAIK,

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

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 will