On Tuesday, 24 August 1999 at 12:38:38 +0300, Ville-Pertti Keinonen wrote:
>
> [EMAIL PROTECTED] (John-Mark Gurney) writes:
>
>> Ville-Pertti Keinonen scribbled this message on Aug 24:
>
>>>     cat writes part of oldmail to /var/mail/grog
>>>     sendmail locks /var/mail/grog
>>>     (cat may try to write more to /var/mail/grog but blocks)
>>>     sendmail delivers new mail
>>>     sendmail unlocks /var/mail/grog
>>>     cat writes the rest of oldmail to /var/mail/grog
>>>
>>> You'll still probably end up with a broken mailbox.
>>
>> what you do is this:
>> lockf -k $mailfile cat ${mailtmp} >> $mailfile
>
> Which doesn't support Greg's arguments for mandatory locking, as
> you're now doing locking in both programs.

Well, it doesn't support the last argument I made, which was
untenable.  It doesn't affect most of the others.  And we're some
distance from the dreaded deadlocks.

Greg
--
See complete headers for address, home page and phone numbers
finger [EMAIL PROTECTED] for PGP public key


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to