The text a939d285f49f, as FreeBSD 4.0-RELEASE shipped it.
register a function to be called on exit
atexit(3) on FreeBSD now