From bcc3646eaa7f8224fb4141730665f8e29ced0776 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 20 Sep 2007 21:21:08 +0000 Subject: [PATCH] (tty_read_avail_input): Use terminal->name as liveness status. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index f0f2f8c897f..1a09436557e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7093,7 +7093,7 @@ tty_read_avail_input (struct terminal *terminal, struct tty_display_info *tty = terminal->display_info.tty; int nread = 0; - if (terminal->deleted) /* Don't read from a deleted terminal. */ + if (!terminal->name) /* Don't read from a dead terminal. */ return; if (terminal->type != output_termcap) -- 2.39.5