title: Saving SBCL Image From Emacs Multiple Threads Error
body: <p>I have been playing with saving running Common Lisp images to save time upon restart and make the development more efficient. However, I am having a bit of a problem since when I run the following command in the Emacs/SLIME:</p>
  
  <pre><code>(sb-ext:save-lisp-and-die "rest-api-image" :purify t)
  </code></pre>
  
  <p>I get the following error. Clearly, it is complaining about seeing multiple threads. As far as I can see, these are not threads I created programmatically. Instead, these are Lisp- and Emacs-created. Is there a workaround here? Can the image still be saved?</p>
  
  <pre><code>Cannot save core with multiple threads running.
  
  Interactive thread (of current session):
    #&lt;THREAD "main thread" RUNNING {1000550853}&gt;
  
  Other threads:
    #&lt;THREAD "Swank Sentinel" #1=waiting on:
         #&lt;WAITQUEUE  {1004AB8003}&gt;
       {1004AB4753}&gt;,
    #&lt;THREAD "control-thread" #1#
         #&lt;WAITQUEUE  {1005BC54D3}&gt;
       {1004D87F03}&gt;,
    #&lt;THREAD "reader-thread" RUNNING {1004D88063}&gt;,
    #&lt;THREAD "swank-indentation-cache-thread" #1#
         #&lt;WAITQUEUE  {1004D980E3}&gt;
       {1004D88183}&gt;,
    #&lt;THREAD "auto-flush-thread" RUNNING {10022FFDA3}&gt;,
    #&lt;THREAD "repl-thread" RUNNING {1002300003}&gt;
     [Condition of type SB-IMPL::SAVE-WITH-MULTIPLE-THREADS-ERROR]
  See also:
    SBCL Manual, Saving a Core Image [:node]
  </code></pre>