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