Subject: Re: Exit hooks interface
From: (Rob Warnock)
Date: Fri, 01 May 2009 04:42:48 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
Leslie P. Polzer <> wrote:
| SBCL provides SB-EXT:*EXIT-HOOKS* to give the user a chance to run
| some code when SBCL exits.
| Are there similar interfaces for other implementations?

CMUCL provides LISP::*CLEANUP-FUNCTIONS*, which are called
when EXT:QUIT is called, but note that these hooks are ignored
if the user calls (EXT:QUIT T) [or UNIX:UNIX-EXIT directly]:

    cmu> (describe #'quit)

    #<Function QUIT {10189621}> is a function.
      (&optional recklessly-p)
    Function documentation:
      Terminates the current Lisp.  Things are cleaned up
      unless Recklessly-P is non-Nil.


Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607