procmail
[Top] [All Lists]

Re: flock'ing..

1999-09-22 20:07:17
Thanks for this - it appears that my binary does fcntl as well. I assume
that this is on top of the dotlocking?

I'm mounting filesystems from a NetApp Filer and in my procmail logs, I'm
getting a "Kernel-lock failed" error.. do you have any ideas as to why
procmail fails locking?

Thanks.

//umar.

Procmail calls its kernel locking routine whenever it writes a message
to a file (as opposed to a pipe).  What actual style of kernel locks
are applied by that routine can be found by running procmail with the
-v option:

    aragorn% procmail -v
    procmail v3.13.1 1999/04/05, Copyright (c) 1999, Stephen R. van den Berg
                                                          
<srb(_at_)cuci(_dot_)nl>
    ...
    Locking strategies:     dotlocking, fcntl()
    Default rcfile:         $HOME/.procmailrc
    Your system mailbox:    /var/spool/mail/guenther
    aragorn%

So, this procmail binary uses fcntl()-style kernel locking.

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