close slaver tty fd for container

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
Gao feng
2015-09-29 10:06:36 +08:00
parent 14aa9eaa39
commit 5f819dc68a
+1 -1
View File
@@ -132,7 +132,7 @@ int hyper_setup_exec_tty(struct hyper_exec *e)
return -1;
}
e->ptyfd = open(ptmx, O_RDWR | O_NOCTTY);
e->ptyfd = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC);
fprintf(stdout, "get pty device for exec %s\n", ptmx);
return 0;