Fix exception handling in call-with-temporary-thread

This commit is contained in:
Christopher Baines 2024-02-01 10:39:11 +01:00
parent d5e663cc1e
commit 7acb38377e

View file

@ -992,7 +992,7 @@
(with-exception-handler
(lambda (exn)
(put-message channel `(exception ,exn)))
(put-message channel `(exception . ,exn)))
(lambda ()
(with-throw-handler #t
(lambda ()
@ -1006,8 +1006,8 @@
(match (get-message channel)
(('values . results)
(apply values results))
(('exception . args)
(apply throw args)))))
(('exception . exn)
(raise-exception exn)))))
(define (inferior-eval-with-store/non-blocking inferior store proc)
(call-with-temporary-thread