(XTread_socket): Increment handling_signal at the start,
authorGerd Moellmann <gerd@gnu.org>
Wed, 5 Jul 2000 19:58:34 +0000 (19:58 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 5 Jul 2000 19:58:34 +0000 (19:58 +0000)
decrement it at the end.

src/xterm.c

index bc13fb9..8e45559 100644 (file)
@@ -8927,6 +8927,8 @@ XTread_socket (sd, bufp, numchars, expected)
   if (numchars <= 0)
     abort ();                  /* Don't think this happens.  */
 
+  ++handling_signal;
+  
   /* Find the display we are supposed to read input for.
      It's the one communicating on descriptor SD.  */
   for (dpyinfo = x_display_list; dpyinfo; dpyinfo = dpyinfo->next)
@@ -10046,6 +10048,7 @@ XTread_socket (sd, bufp, numchars, expected)
     }
 
   UNBLOCK_INPUT;
+  --handling_signal;
   return count;
 }