gurne...@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 majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message