Don't die if the client is detaching (the tty has been closed) after waking up

from locking.
pull/1/head
Nicholas Marriott 2009-09-23 07:25:31 +00:00
parent b01dcd7971
commit 631a618238
1 changed files with 3 additions and 0 deletions

3
tty.c
View File

@ -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