Commit 325530de authored by Chong Yidong's avatar Chong Yidong
Browse files

(run_timers, alarm_signal_handler): Update pending_signals.

parent 55310b94
...@@ -384,8 +384,13 @@ run_timers () ...@@ -384,8 +384,13 @@ run_timers ()
EMACS_GET_TIME (now); EMACS_GET_TIME (now);
} }
if (! pending_atimers) if (pending_atimers)
set_alarm (); pending_signals = 1;
else
{
pending_signals = interrupt_input_pending;
set_alarm ();
}
} }
...@@ -397,6 +402,7 @@ alarm_signal_handler (signo) ...@@ -397,6 +402,7 @@ alarm_signal_handler (signo)
int signo; int signo;
{ {
pending_atimers = 1; pending_atimers = 1;
pending_signals = 1;
#ifndef SYNC_INPUT #ifndef SYNC_INPUT
run_timers (); run_timers ();
#endif #endif
...@@ -439,6 +445,7 @@ init_atimer () ...@@ -439,6 +445,7 @@ init_atimer ()
{ {
free_atimers = atimers = NULL; free_atimers = atimers = NULL;
pending_atimers = 0; pending_atimers = 0;
/* pending_signals is initialized in init_keyboard.*/
signal (SIGALRM, alarm_signal_handler); signal (SIGALRM, alarm_signal_handler);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment