ref: 49564ad96a2acfef1ffc6cb8ee32bfb51a29f450
parent: 02f22fc85aad29658e7300fbbc4587a29677e574
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Apr 15 22:30:21 EDT 2025
__finish: check if *exit-hooks* is bound before executing
--- a/src/system.sl
+++ b/src/system.sl
@@ -1635,4 +1635,5 @@
(def (__finish status)
"A function called right before exit by the VM."
- (for-each (λ (f) (f status)) *exit-hooks*))
+ (when (bound? '*exit-hooks*)
+ (for-each (λ (f) (f status)) *exit-hooks*)))
--
⑨