Fix for 'the kermit problem' (keyrepeats happening before the keyrepeat

timeout). A fix is to treat the alarm and interrupt cases differently and
only call the interrupt handler when an actual interrupt has been seen. No
apparent adverse effects.
This commit is contained in:
Ben Gras 2005-05-31 15:22:06 +00:00
parent f0af8d85e7
commit 5a43b84e2d

View file

@ -193,6 +193,8 @@ PUBLIC void main(void)
*/
switch (tty_mess.m_type) {
case SYN_ALARM: /* fall through */
expire_timers(); /* run watchdogs of expired timers */
continue; /* contine to check for events */
case HARD_INT: /* hardware interrupt notification */
do_interrupt(&tty_mess);/* fetch chars from keyboard */
expire_timers(); /* run watchdogs of expired timers */