Re: TTY changes to 2.1.65

Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 29 Nov 1997 18:01:13 +0100 (CET)


On Mon, 24 Nov 1997 tytso@mit.edu wrote:

>Hi Linus,
>
> The following patches fix a few bugs in the serial driver, as

And it add a new one :) that continues to _lock_ my kernel when I close a
xterm.

Here the patch against 2.1.66:

--- linux/drivers/char/tty_io.c Fri Nov 28 12:21:59 1997
+++ /home/andrea/devel/linux/drivers/char/tty_io.c Sat Nov 29 17:40:25 1997
@@ -451,7 +451,7 @@
#ifdef TTY_DEBUG_HANGUP
printk("%s hangup...\n", tty_name(tty));
#endif
- queue_task(&tty->tq_hangup, &tq_timer);
+ queue_task(&tty->tq_hangup, &tq_immediate);
}

void tty_vhangup(struct tty_struct * tty)

Another warning: low_latency is never initialized and in another point
you use queue_task(&tty->tq_hangup, &tq_timer);.

Andrea[s] Arcangeli