public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tty kill character handling problems
@ 2001-05-12  7:33 Taral
  0 siblings, 0 replies; only message in thread
From: Taral @ 2001-05-12  7:33 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-12  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-12  7:33 tty kill character handling problems Taral

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox