On Wed, Jun 06, 2001 at 05:26:05PM -0400, Homer Wilson Smith wrote:
> Is there a white paper on file locking and how it works, including
> techniques of use, particularly dotlocking and flock/fcntl?
>
> I notice procmail 3.15.1 is using dotlocking now to deliver
> mail on Linux 2.0.38. For example I can't run a perl script that does a
>
> open (MAIL,"/var/spool/mail/homer");
> flock(MAIL,2);
>
> on the mail box and have it work, I gotta do it on the homer.lock file.
>
> It would be helpful to have a deeper understanding of file locking to
> better understand the interactions between procmail and qpopper.
After looking into things here, I would recommend invoking the
procmail "lockfile" utility. That way you are guaranteed you will use
the same mechanism as procmail at least.
-- Clifton
--
Clifton Royston -- LavaNet Systems Architect -- [EMAIL PROTECTED]
WWJD? "JWRTFM!" - Scott Dorsey (kludge) "JWG" - Eddie Aikau