Commit 743970d2 authored by Lennart Poettering's avatar Lennart Poettering

core: one step back again, for nspawn we actually can't wait for cgroups...

core: one step back again, for nspawn we actually can't wait for cgroups running empty since systemd will get exactly zero notifications about it
parent 4e05c495
......@@ -3103,7 +3103,15 @@ int unit_kill_context(
log_warning_unit(u->id, "Failed to kill control group: %s", strerror(-r));
} else if (r > 0) {
wait_for_exit = true;
/* FIXME: For now, we will not wait for the
* cgroup members to die, simply because
* cgroup notification is unreliable. It
* doesn't work at all in containers, and
* outside of containers it can be confused
* easily by leaving directories in the
* cgroup. */
/* wait_for_exit = true; */
if (c->send_sighup && !sigkill) {
set_free(pid_set);
......
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