Unverified Commit 7f240f47 by Stéphane Graber Committed by GitHub

Merge pull request #2898 from brauner/2019-03-10/fix_post_stop_hooks

hooks: drop namespace references before post-stop
parents 75df7779 048493a3
...@@ -1026,6 +1026,9 @@ void lxc_fini(const char *name, struct lxc_handler *handler) ...@@ -1026,6 +1026,9 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
lxc_set_state(name, handler, STOPPED); lxc_set_state(name, handler, STOPPED);
} }
/* Avoid lingering namespace references. */
lxc_put_nsfds(handler);
ret = run_lxc_hooks(name, "post-stop", handler->conf, NULL); ret = run_lxc_hooks(name, "post-stop", handler->conf, NULL);
if (ret < 0) { if (ret < 0) {
ERROR("Failed to run lxc.hook.post-stop for container \"%s\"", name); ERROR("Failed to run lxc.hook.post-stop for container \"%s\"", name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment