[slime-devel] bug with image saving while swank is loaded

hi! fyi, without these lines in swank.lisp (or something equivalent): (defun after-saved-image-initialized () (setf *log-output* nil) (init-log-output)) #+sbcl(pushnew 'after-saved-image-initialized sb-ext:*init-hooks*) trying to start a swank server after loading a saved image where swank has been loaded in before saving, dies an ugly and not too helpful death: https://bugs.launchpad.net/sbcl/+bug/444427 -- attila

2009/10/8 Attila Lendvai <attila.lendvai@gmail.com>:
(defun after-saved-image-initialized () (setf *log-output* nil) (init-log-output))
#+sbcl(pushnew 'after-saved-image-initialized sb-ext:*init-hooks*)
Unless I'm missing something, it seems mildly preferable to instead use *SAVE-HOOKS* to get the *LOG-OUTPUT* to NIL. Not that it's a huge difference in practice -- just tidier to clean up the old stream before saving. Cheers, -- Nikodemus

Unless I'm missing something, it seems mildly preferable to instead use *SAVE-HOOKS* to get the *LOG-OUTPUT* to NIL.
Not that it's a huge difference in practice -- just tidier to clean up the old stream before saving.
any chance for a fix? it keeps popping up on #lisp... currently i have a kludge to 'fix' it: #+sbcl (push (lambda () (setf swank::*log-output* nil)) sb-ext:*save-hooks*) the proper fix depends on the maintainers' taste. -- attila
participants (2)
-
Attila Lendvai
-
Nikodemus Siivola