mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-04 12:41:53 +00:00
close slaver tty fd for container
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user