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 <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to