[lkml]   [1996]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Pre2.0-8 & Sendmail
    In <> (Andrew Walker) writes:

    >Recompile your sendmail to lock with flock() (#define HASFLOCK I think).
    >In newer kernels I disallowed mixing BSD (flock) and SYSV(lockf)/POSIX(fcntl)
    >locks on a file. The GDBM routines use flock() to lock the alias database,
    >and then sendmail tries to lock the same files with lockf() - hence the

    You might want to reconsider your recommendation for flock() as the
    standard. I agree that mixed locks are a bad thing, but standardizing on
    flock means anyone wanting to try doing locking over NFS will have to
    maintain custom versions of the system libraries. Debian has already
    changed their gdbm to use fcntl() locking.

    Is there any particular reason to recommending flock()? My book on Posix
    programming uses fcntl() and calls flock() a BSD'ism.

    Artificial Intelligence stands no chance against Natural Stupidity.
    GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
    b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*

     \ /
      Last update: 2005-03-22 13:37    [W:0.018 / U:7.352 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site