From bde5503bf1448e1a5edf6ba0bc850bed3b42932e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 5 Jul 2000 19:58:34 +0000 Subject: [PATCH] (XTread_socket): Increment handling_signal at the start, decrement it at the end. --- src/xterm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index bc13fb98ba2..8e45559662c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; } -- 2.39.2