From: Ben Gras Date: Fri, 16 Dec 2011 08:54:20 +0000 (+0100) Subject: tty timeout bugfix X-Git-Tag: v3.2.0~173 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=eccb2d685c5b07605cb3e982cbc9ad0bb8cd7c3c;p=minix.git tty timeout bugfix . timeouts were always delivered to console . Fix by Lucio Tomarchio --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index 1d31be457..a63d96719 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -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);