diff options
| author | Nicholas Marriott <nicm@openbsd.org> | 2009-09-23 07:25:31 +0000 |
|---|---|---|
| committer | Nicholas Marriott <nicm@openbsd.org> | 2009-09-23 07:25:31 +0000 |
| commit | 631a6182381f246c4c6aa9a200c744fcd5be015c (patch) | |
| tree | 22443f0b843b231202f2c69ddf8b4047cc581339 | |
| parent | b01dcd79715d968cb39dc892215c2f6921d43974 (diff) | |
| download | rtmux-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |