From: Ben Gras Date: Tue, 31 May 2005 15:22:06 +0000 (+0000) Subject: Fix for 'the kermit problem' (keyrepeats happening before the keyrepeat X-Git-Tag: v3.1.0~793 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-revoke.html?a=commitdiff_plain;h=5a43b84e2dc6d42c66bbb77c9a1f76a71e6db635;p=minix.git 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. --- 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 */