]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_make_frame_visible): Call signal handler directly.
authorKarl Heuer <kwzh@gnu.org>
Fri, 26 Aug 1994 05:18:31 +0000 (05:18 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 26 Aug 1994 05:18:31 +0000 (05:18 +0000)
src/xterm.c

index a900a6e15dde0c2863c9ab099ea71810a0ed15b3..73515ff31742e203b1ef25187749dc54c3c4fbe6 100644 (file)
@@ -5673,10 +5673,15 @@ x_make_frame_visible (f)
       {
        x_sync (frame);
        /* Machines that do polling rather than SIGIO have been observed
-          to go into a busy-wait here.  Send the alarm signal to let
-          the handler know that there's something to be read.  */
+          to go into a busy-wait here.  So we'll fake an alarm signal
+          to let the handler know that there's something to be read.
+          We used to raise a real alarm, but it seems that the handler
+          isn't always enabled here.  This is probably a bug.  */
 #ifndef SIGIO
-       kill (getpid(), SIGALRM);
+       /* It could be confusing if a real alarm arrives while processing
+          the fake one.  Turn it off and let the handler reset it.  */
+       alarm (0);
+       input_poll_signal ();
 #endif
       }
     FRAME_SAMPLE_VISIBILITY (f);