Subject: Re: Exit hooks interface
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 01 May 2009 04:42:48 -0500
Newsgroups: comp.lang.lisp
Message-ID: <feqdnfSgqoyFWWfUnZ2dnUVZ_rmdnZ2d@speakeasy.net>
Leslie P. Polzer <leslie.polzer@googlemail.com> 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.
    Arguments:
      (&optional recklessly-p)
    Function documentation:
      Terminates the current Lisp.  Things are cleaned up
      unless Recklessly-P is non-Nil.
    ...


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607