From 07a1e794413237cc72419a965ad88f0592a69e9c Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 30 Jan 2009 13:06:07 +0000 Subject: * atimer.c (run_timers, alarm_signal_handler): * keyboard.c (pending_signals, handle_async_input, init_keyboard): * w32inevt.c (w32_console_read_socket): * w32term.c (w32_read_socket): * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate. --- src/atimer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/atimer.c') diff --git a/src/atimer.c b/src/atimer.c index 6767ee59c0e..1653b629abf 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -384,6 +384,7 @@ run_timers () EMACS_GET_TIME (now); } +#ifdef SYNC_INPUT if (pending_atimers) pending_signals = 1; else @@ -391,6 +392,10 @@ run_timers () pending_signals = interrupt_input_pending; set_alarm (); } +#else + if (! pending_atimers) + set_alarm (); +#endif } @@ -402,8 +407,9 @@ alarm_signal_handler (signo) int signo; { pending_atimers = 1; +#ifdef SYNC_INPUT pending_signals = 1; -#ifndef SYNC_INPUT +#else run_timers (); #endif } -- cgit v1.2.1