aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-08-26 05:18:31 +0000
committerKarl Heuer1994-08-26 05:18:31 +0000
commit23cf7c602a3ec4f10f8eb312e0f38ae8ba9fea29 (patch)
tree7e2a3ca5d77b9dba4019e59bdd364dfa292e07b6 /src
parent8427dec96b1d72027a72983f780d852dfbb8deb6 (diff)
downloademacs-23cf7c602a3ec4f10f8eb312e0f38ae8ba9fea29.tar.gz
emacs-23cf7c602a3ec4f10f8eb312e0f38ae8ba9fea29.zip
(x_make_frame_visible): Call signal handler directly.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a900a6e15dd..73515ff3174 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5673,10 +5673,15 @@ x_make_frame_visible (f)
5673 { 5673 {
5674 x_sync (frame); 5674 x_sync (frame);
5675 /* Machines that do polling rather than SIGIO have been observed 5675 /* Machines that do polling rather than SIGIO have been observed
5676 to go into a busy-wait here. Send the alarm signal to let 5676 to go into a busy-wait here. So we'll fake an alarm signal
5677 the handler know that there's something to be read. */ 5677 to let the handler know that there's something to be read.
5678 We used to raise a real alarm, but it seems that the handler
5679 isn't always enabled here. This is probably a bug. */
5678#ifndef SIGIO 5680#ifndef SIGIO
5679 kill (getpid(), SIGALRM); 5681 /* It could be confusing if a real alarm arrives while processing
5682 the fake one. Turn it off and let the handler reset it. */
5683 alarm (0);
5684 input_poll_signal ();
5680#endif 5685#endif
5681 } 5686 }
5682 FRAME_SAMPLE_VISIBILITY (f); 5687 FRAME_SAMPLE_VISIBILITY (f);