From 5a43b84e2dc6d42c66bbb77c9a1f76a71e6db635 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 31 May 2005 15:22:06 +0000 Subject: [PATCH] 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. --- drivers/tty/tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index 9968e0dff..19c04729b 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -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 */ -- 2.44.0