From 631a6182381f246c4c6aa9a200c744fcd5be015c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 23 Sep 2009 07:25:31 +0000 Subject: [PATCH] Don't die if the client is detaching (the tty has been closed) after waking up from locking. --- tty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tty.c b/tty.c index 82cfac80..2129747d 100644 --- a/tty.c +++ b/tty.c @@ -131,6 +131,9 @@ tty_start_tty(struct tty *tty) struct termios tio; int what; + if (tty->fd == -1) + return; + #if 0 tty_detect_utf8(tty); #endif