]> git.eshelyaron.com Git - emacs.git/commitdiff
(gobble_input): Block SIGALRM if we are using it.
authorRichard M. Stallman <rms@gnu.org>
Tue, 13 Sep 1994 04:13:32 +0000 (04:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 13 Sep 1994 04:13:32 +0000 (04:13 +0000)
src/keyboard.c

index 96f0c651658c3dd0bf123c59db4b3bbb06e25ca4..5eb05979717448a2154105cc508923e6c53b10c4 100644 (file)
@@ -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)
@@ -3431,6 +3431,16 @@ gobble_input (expected)
       sigsetmask (mask);
     }
   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