Re: Closing database in exit handler
Stefan Bellon <[email protected]> Sun, 11 Sep 2005 15:13:45 +0200
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Message-ID | <[email protected]> |
David Relson wrote: > We used to have atexit(bf_exit) code for cleanup. With the addition > of transactions last year, it was no longer necessary and was removed. Oh, I see. Perhaps that's why I didn't spot the problem earlier. > Since it seems to be needed again, I've resurrected the code and it's > now in cvs. Thanks. I hope there will be a 0.96.2 before some 1.00 release candidate? > By the way, are any of your crashes reproducible, hence fixable? I knew you would ask this question. ;-) Yesterday I had a crash on my fathers computer with an old copy of Bogofilter 0.94.3 (I think this version didn't have unicode, but unicode appeared in a later 0.94.x version). I could track it down to the date being in some strange endcoding. I checked the same message with my copy of 0.96.1 and it passes without crashing, so, no problem with that message at present. But in general, I wondered whether the atexit idea wasn't that bad at all because the wordlist.db on my father's machine was left open, so all subsequent attempts to run Bogofilter failed. If I see a crash with a recent version of Bogofilter I will give you a detailed report. -- Stefan Bellon _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev