file locking

Matthias Andree matthias.andree at stud.uni-dortmund.de
Mon Sep 16 19:33:03 CEST 2002


Boris 'pi' Piwinger schrieb am Montag, den 16. September 2002:

> How save is the file locking on the files in .bogofilter? Clearly, it
> is possible that several bogofilter processes run at the same time.
> They might even run on different machines (like with NFS-mounted home
> directory).

fcntl is the only scheme that will work across NFS, so you'll have to
tune config.h on all machines to #undef HAVE_LOCKF and #undef HAVE_FLOCK
before doing make (or issue make clean after modifying config.h). That
way, bogofilter will use fcntl.

Of course, the clients will need to have client-side locking support
(most BSDs don't) and the NFS server must support server-side locking
support (that's usually no problem).

-- 
Matthias Andree

For summay digest subscription: bogofilter-digest-subscribe at aotto.com



More information about the Bogofilter mailing list