]> git.proxmox.com Git - mirror_lxc.git/commit
attach: use move_fd in lxc_proc_close_ns_fd
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Feb 2019 16:05:24 +0000 (17:05 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Feb 2019 16:05:24 +0000 (17:05 +0100)
commit5f9facdac9fed59f5e4b52a35bf550a417ae7e7e
tree005ea5383358318ae3ee62795225c9be2e3cec20
parentde24eb5ba6b650c25500e2b957d7f9a0aa103d46
attach: use move_fd in lxc_proc_close_ns_fd

Previously this set `ctx->ns_fd[*]` to `-EBADF` until commit
fd2a88b190eb ("attach: cleanup macros lxc_proc_close_ns_fd",
but there are some code paths where we call this before
later calling `lxc_proc_put_context_info` which would call
this function again with the file descriptors still
unchanged.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/attach.c