procmail
[Top] [All Lists]

Re: file locking

1998-02-18 09:12:12
Hi,
On Feb 18,  1:49pm, era eriksson wrote:
"Matthew G. Saroff" <msaroff(_at_)pca(_dot_)net> wrote:
 > :0:$HOME/locked
 > * some condition
 > $HOME/locked

You are putting yourself in an endless loop here. The lock file is
just a "semamphore" file which, if it exists, prevents Procmail from
continuing.

  You'd need to set LOCKTIMEOUT to zero or a very high value. Other
than that, this is the perfect case for a regional lock file.

    LOCKFILE=$HOME/locked.lock

    :0
    * some condition
    $HOME/locked

    :0A
    | blah blah blah

    LOCKFILE

The last line here is an assignment, it means essentially the same as
LOCKFILE='' and so purges the regional lock.
        Does this lockfile affect just the two recipes in between the lockfile
statements, or does this apply to all procmail activity going on?
        Thanks muchly for the help.

-- 
--
Matthew Saroff
Do not reply directly to this message.  Reply to
msaroff(_at_)pobox(_dot_)com

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