X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsave.lisp;h=0373fcef262bc3211f559e21886dc077c5bd45bd;hb=2a03fda8299baea66cb9a6955d414dcc27af5ac9;hp=4aa940a8a7c6f1844cd8d8e35a2f1997a3b76db4;hpb=04ee798422795a1e3d664c257a6b02b833eec4c6;p=sbcl.git diff --git a/src/code/save.lisp b/src/code/save.lisp index 4aa940a..0373fce 100644 --- a/src/code/save.lisp +++ b/src/code/save.lisp @@ -147,15 +147,12 @@ sufficiently motivated to do lengthy fixes." (save-core t))))) (defun deinit () - (dolist (hook *save-hooks*) - (with-simple-restart (continue "Skip this save hook.") - (funcall hook))) + (call-hooks "save" *save-hooks*) (when (rest (sb!thread:list-all-threads)) (error "Cannot save core with multiple threads running.")) - #!-win32 - (when (fboundp 'cancel-finalization) - (cancel-finalization sb!sys:*tty*)) (float-deinit) (profile-deinit) (debug-deinit) - (foreign-deinit)) + (foreign-deinit) + (stream-deinit) + (deinit-finalizers))