Re: Forking 'lockfile' code?
Olaf TNSB <[email protected]> Mon, 24 Jan 2011 20:20:00 +1100
| Newsgroups | gmane.mail.procmail.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 24, 2011 at 6:29 PM, Bart Schaefer <[email protected]> wrote= : > On Mon, 24 Jan 2011, Olaf TNSB wrote: > >> What I really want to know is am I re-inventing the wheel? =A0Has this >> already been done by someone before? > > The maildrop package comes with a very similar program called lockmail. > Also there's a C library maillock(3x) that has shipped for years on som= e > unix distributions (Solaris for one, IIRC), though I believe it only lo= cks > the system mail spool, not any arbitrary file. Thanks Bart. Didn't know about them. maillock doesn't seem to be what I'm looking for - mail spool locking as you suggested and the man page I just read says the routines are obsolete. lockmail seems to have the "problems" that I have with lockfile - I still need to install maildrop to get the limited functionality I need. Unless someone else comes up with another alternative I will look at forking off lockfile. When/If I get it working I'll post a link back here in case this question comes up again. O.