tty kill character handling problems

Taral (taral@taral.net)
Sat, 12 May 2001 02:33:07 -0500


I think the current echok/echoke/echoe handling is wrong. The following
patch should fix the problem, unless I've totally misunderstood this...

--- linux/drivers/char/n_tty.c.orig Fri May 11 21:45:48 2001
+++ linux/drivers/char/n_tty.c Fri May 11 22:00:52 2001
@@ -352,7 +352,7 @@
spin_unlock_irqrestore(&tty->read_lock, flags);
return;
}
- if (!L_ECHOK(tty) || !L_ECHOKE(tty) || !L_ECHOE(tty)) {
+ if (!L_ECHOKE(tty)) {
spin_lock_irqsave(&tty->read_lock, flags);
tty->read_cnt -= ((tty->read_head - tty->canon_head) &
(N_TTY_BUF_SIZE - 1));

-- 
Taral <taral@taral.net>
Please use PGP/GPG encryption to send me mail.
"Any technology, no matter how primitive, is magic to those who don't
understand it." -- Florence Ambrose
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/