]> git.ipfire.org Git - thirdparty/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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Apr 2019 20:57:57 +0000 (22:57 +0200)
commit56ad362cde156c6f074bee58c523e5b7b9ea11f9
treead6de8aca1eb9cba717fd91728ed83ab535bb820
parent801e1da46f8e45c6d7f1cc47ee7a900d8724b457
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