aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-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