]> Zhao Yanbai Git Server - minix.git/commitdiff
tty timeout bugfix
authorBen Gras <ben@minix3.org>
Fri, 16 Dec 2011 08:54:20 +0000 (09:54 +0100)
committerBen Gras <ben@minix3.org>
Fri, 16 Dec 2011 08:54:20 +0000 (09:54 +0100)
. timeouts were always delivered to console
. Fix by Lucio Tomarchio

drivers/tty/tty.c

index 1d31be457d1c41dddbd29f0579ec52c87019b658..a63d967191c8f7ba5b1c8822d22759a664b5b156 100644 (file)
@@ -1598,7 +1598,7 @@ int enable;                       /* set timer if true, otherwise unset */
        ticks = tty_ptr->tty_termios.c_cc[VTIME] * (system_hz/10);
 
        /* Set a new timer for enabling the TTY events flags. */
-       set_timer(&tty_ptr->tty_tmr, ticks, tty_timed_out, 0);
+       set_timer(&tty_ptr->tty_tmr, ticks, tty_timed_out, tty_ptr->tty_index);
   } else {
        /* Remove the timer from the active and expired lists. */
        cancel_timer(&tty_ptr->tty_tmr);