Mercurial > emacs
changeset 101647:a802fb91191e
(run_timers, alarm_signal_handler): Update pending_signals.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 29 Jan 2009 14:33:14 +0000 |
parents | 18eabb5ae6df |
children | 798e92a3bab0 |
files | src/atimer.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/atimer.c Thu Jan 29 14:32:49 2009 +0000 +++ b/src/atimer.c Thu Jan 29 14:33:14 2009 +0000 @@ -384,8 +384,13 @@ EMACS_GET_TIME (now); } - if (! pending_atimers) - set_alarm (); + if (pending_atimers) + pending_signals = 1; + else + { + pending_signals = interrupt_input_pending; + set_alarm (); + } } @@ -397,6 +402,7 @@ int signo; { pending_atimers = 1; + pending_signals = 1; #ifndef SYNC_INPUT run_timers (); #endif @@ -439,6 +445,7 @@ { free_atimers = atimers = NULL; pending_atimers = 0; + /* pending_signals is initialized in init_keyboard.*/ signal (SIGALRM, alarm_signal_handler); }