summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/run.c b/src/run.c
index 2c2318c..34fccc6 100644
--- a/src/run.c
+++ b/src/run.c
@@ -405,8 +405,10 @@ static void run_cleanup(struct lt_config_app *cfg,
if (lt_sh(cfg, pipe))
lt_fifo_notify_cleanup(cfg);
- if (cfg->output_tty)
+ if (cfg->output_tty) {
tty_close(cfg);
+ close(pa->fd_tty_master);
+ }
remove_dir(cfg, pa->dir);
}