mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 06:19:25 +00:00
Skip control tty code for non-ttys
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
453d4bca05
commit
d3b6301135
@ -985,7 +985,7 @@ static int attach_child_main(void* data)
|
||||
new_gid = options->gid;
|
||||
|
||||
/* setup the control tty */
|
||||
if (options->stdin_fd) {
|
||||
if (options->stdin_fd && isatty(options->stdin_fd)) {
|
||||
if (setsid() < 0) {
|
||||
SYSERROR("unable to setsid");
|
||||
shutdown(ipc_socket, SHUT_RDWR);
|
||||
|
Loading…
Reference in New Issue
Block a user