[Gc] Re: Do finalizers run at exit?

Florian Weimer fw at deneb.enyo.de
Sun Dec 30 04:43:07 PST 2007


* Achilleas Margaritis:

> I guess the problem is that there is no way to tell the C run time
> system to execute the gc cleanup as the absolutely last thing before
> deleting a process.

I've used atexit-style to perform clean-up tasks where it is desirable.
For instance, I used them to abort pending transactions for in-process
database libraries such as Berkeley DB or SQLite; otherwise, costly
recovery may be necessary at the next program invocation.  However,
there are comparatively few such resources.


More information about the Gc mailing list