aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-09-13 04:13:32 +0000
committerRichard M. Stallman <[email protected]>1994-09-13 04:13:32 +0000
commit81931ba19aee66ac9e0d3df948858a42048453a5 (patch)
treec53ec4b80d4f1eee6729cc68a75eebb503dcf10c /src/keyboard.c
parenteadcb02c5339e7c33b0872911a418bf3ce8daac4 (diff)
(gobble_input): Block SIGALRM if we are using it.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 96f0c65165..5eb0597971 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3415,7 +3415,7 @@ get_input_pending (addr)
*addr = !NILP (Vquit_flag) || readable_events ();
}
-/* Interface to read_avail_input, blocking SIGIO if necessary. */
+/* Interface to read_avail_input, blocking SIGIO or SIGALRM if necessary. */
int
gobble_input (expected)
@@ -3432,6 +3432,16 @@ gobble_input (expected)
}
else
#endif
+#ifdef POLL_FOR_INPUT
+ if (read_socket_hook && !interrupt_input && poll_suppress_count == 0)
+ {
+ SIGMASKTYPE mask;
+ mask = sigblockx (SIGALRM);
+ read_avail_input (expected);
+ sigsetmask (mask);
+ }
+ else
+#endif
read_avail_input (expected);
#endif
}