]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #9087 with crashes on MS-Windows under throw-on-input.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2012 20:15:01 +0000 (22:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2012 20:15:01 +0000 (22:15 +0200)
 src/w32fns.c (signal_user_input): Don't do a QUIT, to avoid
 thrashing the stack of the thread.

src/ChangeLog
src/w32fns.c

index 28910c5a556a1afcc7b19899de88f8504a3a798b..eb03ef1357f9315ac0fb2a38c6d2b49e4557ac86 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (signal_user_input): Don't do a QUIT, to avoid
+       thrashing the stack of the thread.  (Bug#9087)
+
 2012-01-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses.
index 1fcf29fbcfd8b416847b5b807a6294281041032e..510d1e94f166bb83d9e1f6f4dd27966dca23f155 100644 (file)
@@ -2479,6 +2479,10 @@ signal_user_input (void)
   if (!NILP (Vthrow_on_input))
     {
       Vquit_flag = Vthrow_on_input;
+      /* Doing a QUIT from this thread is a bad idea, since this
+        unwinds the stack of the Lisp thread, and the Windows runtime
+        rightfully barfs.  Disabled.  */
+#if 0
       /* If we're inside a function that wants immediate quits,
         do it now.  */
       if (immediate_quit && NILP (Vinhibit_quit))
@@ -2486,6 +2490,7 @@ signal_user_input (void)
          immediate_quit = 0;
          QUIT;
        }
+#endif
     }
 }