KSpagnol@massey.ac.nz (Ken Spagnolo) (07/20/89)
The subject line says it all, really. I am writing something that grabs files out of /usr/spool/mail, so I need to lock them first. The docs say binmail puts lock files in /usr/spool/mail, but my experiments say it does no such thing. This implies flock() is used, right? I don't really care, but I need to be sure what the mechanism is so I do the same. Anyone know for sure? Thank you much. ============================================================================== Ken Spagnolo, Systems Programmer, Comp.Ctr., Massey Univ, Palmerston Nth, N.Z. CSnet/ACSnet/Internet: K.Spagnolo@massey.ac.nz Phone: +64-63-69099 x8587 From North America: K.Spagnolo%massey.ac.nz@relay.cs.net New Zealand = GMT+12 ==============================================================================
csg@pyramid.pyramid.com (Carl S. Gutekunst) (07/21/89)
OSx 4.1 and later does it the 4.3BSD way: flock(). In both universes, I might add. It was easier to add flock() to the SVR3 mailers than to add lock files to the 4.3BSD mailers. <csg>