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

Re: problem with folder locking: procmail and pine

   On Mar 3, Malc Arnold wrote:

> > What's wrong with using dot-locking in conjunction with fcntl/flock?
> It blows up horribly if /var/spool/mail (or the local equivalent) is
> mounted via NFS.  Dot-locking is the *only* reliable locking mechanism
> in that case; and since a Debian package can't know in advance what
> its run-time environment should be, then it shouldn't use any locking
> mechanism except .lock files.

OK, I can understand how flock might not work over NFS.  What puzzles me is
why this wouldn't work:

 * MUA/MTA first creates the dot-locking file
 * Then it uses flock to lock it

This way, it uses both systems.

How would using flock like that cause it to fail?

John Goerzen          | Running Debian GNU/Linux (www.debian.org)
Custom Programming    | 
jgoerzen@complete.org | 

Reply to: