]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 12 May 2007 23:35:31 +0000 (23:35 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 12 May 2007 23:35:31 +0000 (23:35 +0000)
src/xterm.c

index 4f77e22ac59730d926aee6baf5508fe42677491a..9adb2b2c259b830c837ad0322ac7dd881251b5c4 100644 (file)
@@ -7065,6 +7065,7 @@ XTread_socket (sd, expected, hold_quit)
 #endif
 
 #ifndef USE_GTK
+      x_catch_errors (dpyinfo->display);
       while (XPending (dpyinfo->display))
        {
           int finish;
@@ -7083,6 +7084,7 @@ XTread_socket (sd, expected, hold_quit)
           if (finish == X_EVENT_GOTO_OUT)
             goto out;
         }
+      x_uncatch_errors ();
 #endif /* not USE_GTK */
     }