Previous Section Next Chapter Table of Contents Glossary Index

Chapter 4. Using Clozure CL

4.14. Other Extensions


quit &optional (exit 0) &key error-handler
Cleanly exit the lisp.


Cleanly exit from lisp. If the exit argument is a value of type (signed-byte 32), that value will be passed to the C library function _exit() as the status code. (A value of nil is treated as a zero.)

Alternatively, exit may be a function of no arguments; this function will be called instead of _exit() to exit the lisp.

The error-handler argument, if supplied, must be a function of one argument, the condition, that will be called if an error occurs when preparing to quit. The error-handler function should exit the lisp.


wait-for-signal s duration
Wait for a particular signal to be received.


Wait for the signal with signal number s to be received, or until duration seconds have elapsed. If duration is nil, wait for an indeterminate "very long time" (many years).

If signal number s is outside the range of valid signals, or is reserved by the lisp for its own use, an error is signaled. (An error is always signaled on Windows systems.)

[Special operator]

unwind-protect protected-form {cleanup-form}*
Ensure cleanup-forms are executed.


In Clozure CL, the cleanup forms are always executed as if they were wrapped with without-interrupts. To allow interrupts, use with-interrupts-enabled.


When true, display verbose disassembly output.


When true, the output of disassemble may include platform-dependent additional information. For instance, on the x86 ports, the output will include the x86 opcode bytes.

The default value is nil.

Previous Section Next Chapter Table of Contents Glossary Index