relson at osagesoftware.com
Thu Jan 6 18:07:34 EST 2005
On Thu, 06 Jan 2005 15:46:35 +0100
Matthias Andree wrote:
> Stefan Bellon <sbellon at sbellon.de> writes:
> > Recently I have played with SQLite3 support for RISC OS. I have SQLite3
> > itself working. And even with Bogofilter it works really good.
> > However I think there's a problem when doing "bogofilter -Q": The
> > wordlist database is opened but not closed properly. This is due to the
> > fact that query_config() terminates the whole program with
> > exit(EX_OK);
> > and open resources aren't closed properly.
> I can reproduce this with BDB 4.2.
> Just run bogofilter -Qvxd >/dev/null twice.
> Thanks for the report, fix below (committed to CVS):
> > Oh, BTW: Happy New Year to all!
> Thank you, same to you.
I think this is a result of removing the bf_exit() function which
ensured proper closing of the wordlist. There are other places that use
exit() and I suspect they'll cause trouble as well.
More information about the Bogofilter-dev