Wanting a pre-db4 bogofilter

David Relson relson at osagesoftware.com
Fri Feb 25 19:26:02 CET 2005


On Fri, 25 Feb 2005 09:57:04 -0800
Jef Poskanzer wrote:

> Matthias Andree <matthias.andree at gmx.de>:
> >   non-transactional Berkeley DB does not guarantee anything after a
> >   crash, be that application or system crash.
> 
> I don't think you're getting it.  Just because BDB requires that you use
> transactions before it will guarantee it won't trash the database does not
> mean that transactions are necessary.  All it means is that BDB does not
> provide the lighter-weight options we need.  Other databases do.
> 
> >                                               Note SIGINT or SIGHUP or
> >   SIGPIPE also "crash" bogofilter for this definition.
> 
> Um...  Bogofilter doesn't catch signals and exit gracefully?  I just did
> some grepping in the code and it looks like you're right about this.
> In fact there it is in the to-do list - "bogofilter should catch common
> interrupt signals".  This is hard for me to believe.

Good catch Jef!

I've just whipped together code to catch SIGINT, SIGKILL, and SIGTERM,
and exit cleanly.  Need SIGSEGV, SIGFPE, SIGILL, and SIGABRT be dealt
with ???

David
_______________________________________________
Bogofilter mailing list
Bogofilter at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter



More information about the Bogofilter mailing list