]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: move file descriptor closing into attach_context_container()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 09:26:21 +0000 (10:26 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 09:51:03 +0000 (10:51 +0100)
commit92466fe34b54940da4cb03ee616aa4cb22cebd90
tree9fc74b8ddd29e88480ff24f06957e4025a60dbb3
parent72a19d2f382d11d3f10c6f439d35b8a8f0b16122
attach: move file descriptor closing into attach_context_container()

This reduces the possibility of forgetting to close the namespace file
descriptors when we change this codepath.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c