Skip site navigation (1)Skip section navigation (2)
Date:      24 Aug 1999 12:38:38 +0300
From:      Ville-Pertti Keinonen <will@iki.fi>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        hackers@freebsd.org, grog@lemis.com
Subject:   Re: Mandatory locking?
Message-ID:  <86pv0djz6o.fsf@not.demophon.com>
In-Reply-To: gurney_j@efn.org's message of "24 Aug 1999 12:22:48 %2B0300"
References:  <19990823223645.A14001@netmonger.net> <19990824021431.55023@hydrogen.fircrest.net>

next in thread | previous in thread | raw e-mail | index | archive | help

gurney_j@efn.org (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.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pv0djz6o.fsf>