diff --git a/src/exec.c b/src/exec.c index 38986ac..c1a2544 100644 --- a/src/exec.c +++ b/src/exec.c @@ -318,6 +318,9 @@ int hyper_dup_exec_tty(int to, struct hyper_exec *e) e->stdoutfd = e->ptyfd; if (e->errseq == 0) e->stderrfd = e->ptyfd; + close(e->stdinev.fd); + close(e->stdoutev.fd); + close(e->stderrev.fd); } fflush(stdout);