Mercurial > emacs
changeset 8609:145a583d9128
(x_make_frame_visible): Raise a signal to cause the pending X I/O to be read.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 24 Aug 1994 06:28:41 +0000 |
parents | 36e9d2326608 |
children | 0c4d14af9e65 |
files | src/xterm.c |
diffstat | 1 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Aug 24 04:50:24 1994 +0000 +++ b/src/xterm.c Wed Aug 24 06:28:41 1994 +0000 @@ -5668,22 +5668,16 @@ so that incoming events are handled. */ { Lisp_Object frame; - int one_in_four = 1; XSET (frame, Lisp_Frame, f); while (! f->async_visible) { x_sync (frame); - /* On HPUX on the HP800, the sleep is needed sometimes. */ - if ((one_in_four & 3) == 0) - { - QUIT; -#ifdef EMACS_HAS_USECS - Fsleep_for (make_number (1), make_number (0)); -#else - Fsleep_for (make_number (0), make_number (250)); + /* 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. */ +#ifndef SIGIO + kill (getpid(), SIGALRM); #endif - } - one_in_four++; } FRAME_SAMPLE_VISIBILITY (f); }