# HG changeset patch # User Stefan Monnier # Date 1190323268 0 # Node ID 4d9f30b2006789772acffa4657c26f6438ecfe9e # Parent e68aa34ac58f91d7b77aa6a58463524f9428efb9 (tty_read_avail_input): Use terminal->name as liveness status. diff -r e68aa34ac58f -r 4d9f30b20067 src/keyboard.c --- a/src/keyboard.c Thu Sep 20 21:19:13 2007 +0000 +++ b/src/keyboard.c Thu Sep 20 21:21:08 2007 +0000 @@ -7093,7 +7093,7 @@ 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)