Primarily technical blog on Lisp, .NET, C# development.

Friday, April 9, 2010

Save Lisp and Die

If you are running SBCL and are using threads, this is the way I found out that works for me to stop the threads before saving the core.

(dolist (thread (sb-thread:list-all-threads))
    (unless (eq thread sb-thread:*current-thread*)
      (sb-thread:terminate-thread thread)))
 
then you can run...

(sb-ext:save-lisp-and-die "core-file")
 
I am using SBCL 1.0.36 64bit on a Linux Ubuntu 9.10 64bit.

1 comment:

Unknown said...

Merkur Gold Strike Safety Razor - FEBCASINO
Merkur's Gold casino-roll.com Strike Safety Razor, Merkur Platinum Edge Plated Finish, German, Gold-Plated, Satin casinosites.one Chrome 출장안마 Finish. Merkur has https://deccasino.com/review/merit-casino/ a https://febcasino.com/review/merit-casino/ more aggressive looking,