[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: flock() and sendmail



On Thu, 16 Nov 2006, John Kelly wrote:

I don't need NFS with sendmail.  Surely flock() is not *still* broken
in 2.6 kernels?

I doubt that flock is *still* broken - that was quite some time ago...

**  NOTE: Override HASFLOCK as you will but, as of 1.99.6, mixed-style
**      file locking is no longer allowed.  In particular, make sure
**      your DBM library and sendmail are both using either flock(2)
**      *or* fcntl(2) file locking, but not both.

This, indeed, is the important part !  DB has changed alot, and now
has its own locking system, and whatever it uses to lock the entire
DB is what should be used by its callers.

Has DB changed from fcntl to flock ?
Are you trying to access the sendmail databases from another
program that has differing locking conventions ?

You fail to provide any hints as to on why fcntl which is used instead
of flock is causing you grief.
--
Rick Nelson
<Oryn> anyone know if there is a version of dpkg for redhat?



Reply to: