diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-09-25 16:46:41 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-08 16:18:18 -0700 |
commit | 8b78f68a7bb3dc97e9797d17317d5f30ec982ce6 (patch) | |
tree | 0249efd1b4437a0ac91999164a474895bb518819 /src/util.lisp | |
parent | 0dce5f6c3024660929d104fb5299a999a82fc224 (diff) | |
download | consfigurator-8b78f68a7bb3dc97e9797d17317d5f30ec982ce6.tar.gz |
use higher-numbered codes for change status, 1 for unhandled errors
When SBCL fails to start up, such as when previously-loaded shared libraries
cannot be found while trying to reinvoke a dumped image, it exits 1. We must
avoid erroneously interpreting this as a successful attempt to make changes.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util.lisp b/src/util.lisp index fd6d020..cee463f 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -580,23 +580,23 @@ interactive debugger.")) (lambda (c) (trivial-backtrace:print-backtrace c :output *error-output*) - (uiop:quit 3))) + (uiop:quit 1))) (skipped-properties (lambda (c) (declare (ignore c)) (setq ,failures t)))) ,@forms))) (uiop:quit (cond ((eql :no-change result) 0) - (,failures 2) - (t 1)))))) + (,failures 22) + (t 23)))))) (defmacro return-exit (exit &key on-failure) `(values nil (case ,exit - (0 :no-change) - (1 nil) - (2 (signal 'skipped-properties) nil) - (t ,on-failure)))) + (0 :no-change) + (22 (signal 'skipped-properties) nil) + (23 nil) + (t ,on-failure)))) (defun posix-login-environment (&optional uid logname home) "Reset the environment after switching UID, or similar, in a :LISP connection. |