mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgscm: Make it impossible to catch '*interpreter-exit*'.
* tests/gpgscm/init.scm (throw'): Make it impossible to catch '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside 'catch' statements. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
957f8ebc89
commit
bce02a8b0f
@ -605,12 +605,12 @@
|
||||
;; This is used by the vm to throw exceptions.
|
||||
(define (throw' message args history)
|
||||
(cond
|
||||
((more-handlers?)
|
||||
((pop-handler) message args history))
|
||||
((and args (list? args) (= 2 (length args))
|
||||
(equal? *interpreter-exit* (car args)))
|
||||
(*run-atexit-handlers*)
|
||||
(quit (cadr args)))
|
||||
((more-handlers?)
|
||||
((pop-handler) message args history))
|
||||
(else
|
||||
(display message)
|
||||
(when (and args (not (null? args)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user