procmail
[Top] [All Lists]

Re: Global vs. local lockfiles

1997-10-10 07:05:39
On Fri, 10 Oct 1997 06:20:54 -0700,
Bill Moseley <moseley(_at_)netcom(_dot_)com> wrote:
I need to set a lock file for a group of recipes.
Is there any difference if I use LOCKFILE verses using something like
   :0:local.lock
   {

Actually, there is. 

 $ cat scratch/rc
 :0:pluck
 {
   :0:
   /tmp/output
 }

 $ procmail DEFAULT=/dev/null scratch/rc </dev/null
 procmail: Extraneous locallockfile ignored

In a VERBOSE log, you'll actually notice that it locks, then releases
the lockfile +before+ going inside the block.

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

<Prev in Thread] Current Thread [Next in Thread>