mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 01:16:03 +00:00
Merge pull request #2619 from smibarber/attach-shutdown
attach: don't shutdown ipc socket in child
This commit is contained in:
commit
ee3d71040d
@ -728,7 +728,6 @@ struct attach_clone_payload {
|
||||
static void lxc_put_attach_clone_payload(struct attach_clone_payload *p)
|
||||
{
|
||||
if (p->ipc_socket >= 0) {
|
||||
shutdown(p->ipc_socket, SHUT_RDWR);
|
||||
close(p->ipc_socket);
|
||||
p->ipc_socket = -EBADF;
|
||||
}
|
||||
@ -906,7 +905,6 @@ static int attach_child_main(struct attach_clone_payload *payload)
|
||||
TRACE("Loaded seccomp profile");
|
||||
}
|
||||
|
||||
shutdown(payload->ipc_socket, SHUT_RDWR);
|
||||
close(payload->ipc_socket);
|
||||
payload->ipc_socket = -EBADF;
|
||||
lxc_proc_put_context_info(init_ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user