From: Leslie P. Polzer
Subject: Exit hooks interface
Date: 
Message-ID: <9b144f61-c73d-497a-b29f-13788f89d85f@y34g2000prb.googlegroups.com>
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?
From: Rob Warnock
Subject: Re: Exit hooks interface
Date: 
Message-ID: <feqdnfSgqoyFWWfUnZ2dnUVZ_rmdnZ2d@speakeasy.net>
Leslie P. 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.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607