procmail
[Top] [All Lists]

Re: File Locking

1997-09-09 10:15:12
Charles Gagnon <charlesg(_at_)Nynexst(_dot_)COM> writes:
I'm using procmail embedded in Sendmail to do delivery on a Solaris
2.5.1 machine and it seems like it having a hard time delivering in
mailboxes opened with the Solaris Mailtool (/usr/openwin/bin/mailtool).
It seems to be a file locking problem.

To quote the procmail FAQ (included in the source tree):

16. My mailtool sometimes reports that it is confused about the state of
    the mailbox, or I get "Couldn't unlock" errors from procmail now and then,
    or sometimes it simply seems to hang just when new mail arrives.
 
        This is a known bug in the OpenLook mailtool.  It holds on to the
        kernel lock on the mail-spoolfile most of the time, and releases
        this lock when it shouldn't.  Either ask for a bugfix from your
        vendor (I'm not sure if a bugfix exists), or make sure that during
        the compilation of procmail both the fcntl() and lockf() locking
        methods are disabled (see config.h).
 

Note that if you disable kernel locking in procmail, you'll have to be
extra-careful about using locallockfiles when they're needed.

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>
  • File Locking, Charles Gagnon
    • Re: File Locking, Philip Guenther <=