]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_term_init): Block input during this function.
authorKarl Heuer <kwzh@gnu.org>
Mon, 29 May 1995 19:49:52 +0000 (19:49 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 29 May 1995 19:49:52 +0000 (19:49 +0000)
src/xterm.c

index 14d77c1adc2c73d7007c8c0b4a48efb4329da258..793d24c21994f98314bd6581c9519e3b2619bbf1 100644 (file)
@@ -5601,6 +5601,8 @@ x_term_init (display_name, xrm_option, resource_name)
   struct x_display_info *dpyinfo;
   XrmDatabase xrdb;
 
+  BLOCK_INPUT;
+
   if (!x_initialized)
     {
       x_initialize ();
@@ -5643,7 +5645,10 @@ x_term_init (display_name, xrm_option, resource_name)
 
   /* Detect failure.  */
   if (dpy == 0)
-    return 0;
+    {
+      UNBLOCK_INPUT;
+      return 0;
+    }
 
   /* We have definitely succeeded.  Record the new connection.  */
 
@@ -5817,6 +5822,8 @@ x_term_init (display_name, xrm_option, resource_name)
     init_sigio (connection);
 #endif /* ! defined (SIGIO) */
 
+  UNBLOCK_INPUT;
+
   return dpyinfo;
 }
 \f