# HG changeset patch # User Richard M. Stallman # Date 779429612 0 # Node ID 592bbf02e29db7ab7ba5bc98d449e8ef3a9eac37 # Parent fcf64871aa14c4648a7beb1c698e8acf29ac5db2 (gobble_input): Block SIGALRM if we are using it. diff -r fcf64871aa14 -r 592bbf02e29d src/keyboard.c --- a/src/keyboard.c Sun Sep 11 08:36:36 1994 +0000 +++ b/src/keyboard.c Tue Sep 13 04:13:32 1994 +0000 @@ -3415,7 +3415,7 @@ *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 @@ } 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 }