aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terms.c b/terms.c
index ca81d28..672262c 100644
--- a/terms.c
+++ b/terms.c
@@ -637,7 +637,8 @@ reset_tty(void)
writestr(T_se); /* reset terminal */
flush_tty();
TerminalSet(tty, &d_ioval);
- close_tty();
+ if (tty != 2)
+ close_tty();
}
static MySignalHandler