OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: pine 4.21 port issues?
From: Ben Smithurst (benFreeBSD.org)
Date: Wed Aug 09 2000 - 03:22:51 CDT


Vladimir Mencl, MK, susSED wrote:

> On Tue, 8 Aug 2000, Gerhard Sittig wrote:
>
>> Question: How does Pine (or C-Client in this scenario) modify
>> the mailbox and how does it lock against the MTA delivering into
>> the box?
>>
>
> Well, does anybody now, how the locking against the MTA is done?

fcntl() or flock() in most cases, I think. Or dotlocking, where to lock
$FILE you create $FILE.lock with O_EXCL|O_CREAT so it fails if the lock
already exists, but that seems crude really, when fcntl()/flock() are so
much easier and probably more efficient and reliable.

> How do multiple copies of the MTA lock against each other (e.g.,
> multiple procmails) ? And how does finally an MUA lock against the MTA ?

All the same way. If the file is locked, neither the MTA or the MUA
cares or knows what has locked it, they wait until it's unlocked.

-- 
Ben Smithurst                 / benFreeBSD.org / PGP: 0x99392F7D
FreeBSD Documentation Project /

To Unsubscribe: send mail to majordomoFreeBSD.org with "unsubscribe freebsd-security" in the body of the message