mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-24 08:07:21 +00:00
close ptymaster before exec
ptymaster is dup-ed without close-on-exec, we need to colse it. Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user