Umar Goldeli <umar(_at_)atlas(_dot_)synflux(_dot_)com(_dot_)au> writes:
I have a really quick and simple question now - is there a way to make
procmail do flock'ing? Or any other methods of locking other than
dot-locking?
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.
Philip Guenther