tty timeout bugfix
. timeouts were always delivered to console . Fix by Lucio Tomarchio
This commit is contained in:
parent
668fa5cf2a
commit
eccb2d685c
@ -1598,7 +1598,7 @@ int enable; /* set timer if true, otherwise unset */
|
|||||||
ticks = tty_ptr->tty_termios.c_cc[VTIME] * (system_hz/10);
|
ticks = tty_ptr->tty_termios.c_cc[VTIME] * (system_hz/10);
|
||||||
|
|
||||||
/* Set a new timer for enabling the TTY events flags. */
|
/* 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 {
|
} else {
|
||||||
/* Remove the timer from the active and expired lists. */
|
/* Remove the timer from the active and expired lists. */
|
||||||
cancel_timer(&tty_ptr->tty_tmr);
|
cancel_timer(&tty_ptr->tty_tmr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user