]> git.eshelyaron.com Git - emacs.git/commitdiff
Raise an error when the thread cannot be created correctly.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 19 Sep 2009 21:09:17 +0000 (23:09 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 19 Sep 2009 21:09:17 +0000 (23:09 +0200)
src/thread.c

index 3c6511ea74e7f3ccbb4bdb68939e5e0aad3ecb64..6e447cb1143cbd0e36527fcd35cdf33a12e4e3a0 100644 (file)
@@ -347,6 +347,7 @@ does not try to get a lock on the current buffer.  */)
     {
       /* Restore the previous situation.  */
       all_threads = all_threads->next_thread;
+      error ("Cannot create new thread");
     }
 
   return Qnil;