[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: atexit in modules
From: |
Mike Gran |
Subject: |
Re: atexit in modules |
Date: |
Thu, 13 Nov 2008 11:59:45 -0800 (PST) |
----- Original Message ----
> From: Ludovic Courtès address@hidden
> In theory, the Right Way(tm) would be to register a finalizer for the
> module that does `load-extension'. That can be done using a guardian,
> but the guardian the needs to be called once in a while, e.g., in
> `after-gc-hook' and `exit-hook'.
OK. I see in the manual there is a section on guardians and a mention of
after-gc-hook in garbage-collection section. Cool.
Exit-hook is underdocumented. The one thread suggested that exit-hook is only
called when using the REPL. Is that (still) true?
-Mike Gran