Skip to content

Commit

Permalink
Check for :slynk or :swank features before exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed May 15, 2023
1 parent 7d9f965 commit cb0054b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@

(defun exit (&optional (code 0))
"Exit the program returning the given exit code to the operating system"
(declare (ignore code))
#-(or swank slynk) (uiop:quit code))
;; Do not exit if we are running from SLY or SLIME
(unless (some (lambda (feat)
(member feat *features*))
(list :slynk :swank))
(uiop:quit code)))

(defun git-rev-parse (&key short (rev "HEAD") (path "."))
"Returns the git revision with the given REV"
Expand Down

0 comments on commit cb0054b

Please sign in to comment.