[cvs] re: bf_abort.c
Matthias Andree
matthias.andree at gmx.de
Sun Sep 7 02:53:04 CEST 2003
David Relson <relson at osagesoftware.com> writes:
> Having bf_abort() call close_wordlists() is appropriate for bogofilter
> and bogoutil, but not for bogolexer, fgetsl_test, etc. I'm thinking we
> should let the compiled flex code use exit(YY_EXIT_FAILURE), which is
> what it's coded to do, and that we should use:
>
> void bf_exit(void)
> {
> close_wordlists(false);
> }
>
> onexit(bf_exit);
The portable name for the latter is atexit().
onexit looks like a SUN burn ;-) (pun intended)
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
More information about the bogofilter-dev
mailing list