]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for 'the kermit problem' (keyrepeats happening before the keyrepeat
authorBen Gras <ben@minix3.org>
Tue, 31 May 2005 15:22:06 +0000 (15:22 +0000)
committerBen Gras <ben@minix3.org>
Tue, 31 May 2005 15:22:06 +0000 (15:22 +0000)
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

index 9968e0dff2fd68f471814860faff1dee53211d0a..19c04729b62abe1c20f1f72ddffa68c485ecf33b 100644 (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 */