[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. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Mandatory locking? Ville-Pertti Keinonen
- Re: Mandatory locking? Terry Lambert
- Re: Mandatory locking? Ville-Pertti Keinonen
- Re: Mandatory locking? Garance A Drosihn
- Re: Mandatory locking? Daniel C. Sobral
- Re: Mandatory locking? Greg Lehey
- Re: Mandatory locking? Christopher Masto
- Re: Mandatory locking? Greg Lehey
- Re: Mandatory locking? Ville-Pertti Keinonen
- Re: Mandatory locking? John-Mark Gurney
- Re: Mandatory locking? Ville-Pertti Keinonen
- Re: Mandatory locking? Greg Lehey
- Re: Mandatory locking? Wes Peters
- Re: Mandatory locking? Christopher Masto
- Re: Mandatory locking? Andrew Kenneth Milton
- Re: Mandatory locking? Garance A Drosihn
- Re: Mandatory locking? Chuck Robey
- Re: Mandatory locking? Christopher Masto
- Re: Mandatory locking? Wes Peters
- Re: Mandatory locking? Daniel C. Sobral
- Re: Mandatory locking? Terry Lambert