]> git.ipfire.org Git - thirdparty/lxc.git/commit
hooks: drop namespace references before post-stop 2898/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Mar 2019 10:46:18 +0000 (11:46 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Mar 2019 10:46:18 +0000 (11:46 +0100)
commit048493a30739347f1e1256fa03fda2d913cd43c9
treee30a964da4ba000c648b0b3a653708624e9c227f
parentb5bd9e1172f77d1bfb679b34d4f889de224148f0
hooks: drop namespace references before post-stop

Callers such as LXD run post-stop hooks to perform cleanup operations on
shutdown. This can involve umount and other things. To avoid surprises with
lingering namespace references we should close all our namespace-preserving
file descriptors. We don't need them at this point anymore anyway.

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