X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/861345b43569790e39df152c6b495b14e7dab360..dc6faaf148af72b8186623f9cf24630889309381:/sys-base.lisp diff --git a/sys-base.lisp b/sys-base.lisp index fdbf4fb..f5f8341 100644 --- a/sys-base.lisp +++ b/sys-base.lisp @@ -36,7 +36,7 @@ #+cmu (defun exit (&optional (code 0)) "Polite way to end a program. If running in an interactive Lisp, just -return to the top-level REPL." + return to the top-level REPL." (if *batch-mode* (throw 'lisp::%end-of-the-world code) (progn @@ -45,9 +45,10 @@ return to the top-level REPL." (abort)))) #+cmu -(defun hard-exit (code) +(defun hard-exit (&optional (code 0)) "Stops the program immediately in its tracks. Does nothing else. Use -after fork, for example, to avoid flushing buffers." + after fork, for example, to avoid flushing buffers." + (declare (type (unsigned-byte 32) code)) (unix::void-syscall ("_exit" c-call:int) code)) #+cmu