aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-23 07:25:31 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-23 07:25:31 +0000
commit631a6182381f246c4c6aa9a200c744fcd5be015c (patch)
tree22443f0b843b231202f2c69ddf8b4047cc581339
parentb01dcd79715d968cb39dc892215c2f6921d43974 (diff)
downloadrtmux-631a6182381f246c4c6aa9a200c744fcd5be015c.tar.gz
rtmux-631a6182381f246c4c6aa9a200c744fcd5be015c.tar.bz2
rtmux-631a6182381f246c4c6aa9a200c744fcd5be015c.zip
Don't die if the client is detaching (the tty has been closed) after waking up
from locking.
-rw-r--r--tty.c3
1 files changed, 3 insertions, 0 deletions
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