Raymond Toy pushed to branch issue-128-quit-exit-code at cmucl / cmucl
Commits:
-
bfdd1d8c
by Raymond Toy at 2022-08-13T17:20:01-07:00
3 changed files:
Changes:
... | ... | @@ -492,15 +492,15 @@ |
492 | 492 | |
493 | 493 | ;;; Quit gets us out, one way or another.
|
494 | 494 | |
495 | -(defun quit (&optional recklessly-p (exit-code 0))
|
|
495 | +(defun quit (&optional recklessly-p (code 0))
|
|
496 | 496 | "Terminates the current Lisp. Things are cleaned up unless
|
497 | 497 | Recklessly-P is non-Nil. On quitting, Lisp sets the return code to
|
498 | - exit-code, defaulting to 0."
|
|
498 | + Code, defaulting to 0."
|
|
499 | 499 | (if recklessly-p
|
500 | - (unix:unix-exit exit-code)
|
|
500 | + (unix:unix-exit code)
|
|
501 | 501 | (progn
|
502 | 502 | (mapc (lambda (fn) (ignore-errors (funcall fn))) *cleanup-functions*)
|
503 | - (throw '%end-of-the-world exit-code))))
|
|
503 | + (throw '%end-of-the-world code))))
|
|
504 | 504 | |
505 | 505 | |
506 | 506 | #-mp ; Multi-processing version defined in multi-proc.lisp.
|
... | ... | @@ -51,6 +51,7 @@ public domain. |
51 | 51 | * ~~#121~~ Wrong column index in FILL-POINTER-OUTPUT-STREAM
|
52 | 52 | * ~~#122~~ gcc 11 can't build cmucl
|
53 | 53 | * ~~#127~~ Linux unix-getpwuid segfaults when given non-existent uid.
|
54 | + * ~~#128~~ `QUIT` accepts an exit code
|
|
54 | 55 | * Other changes:
|
55 | 56 | * Improvements to the PCL implementation of CLOS:
|
56 | 57 | * Changes to building procedure:
|
... | ... | @@ -311,7 +311,7 @@ msgstr "" |
311 | 311 | msgid ""
|
312 | 312 | "Terminates the current Lisp. Things are cleaned up unless\n"
|
313 | 313 | " Recklessly-P is non-Nil. On quitting, Lisp sets the return code to\n"
|
314 | -" exit-code, defaulting to 0."
|
|
314 | +" Code, defaulting to 0."
|
|
315 | 315 | msgstr ""
|
316 | 316 | |
317 | 317 | #: src/code/lispinit.lisp
|