diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-07 14:32:33 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-09-07 14:32:33 +0200 |
commit | e5ff123fa4c23ed39685f8f8dc7f77f1627a81fd (patch) | |
tree | 11715f33b955e15f1d87eec854e112b893a2e1b0 /src/core/cgroup.c | |
parent | aa963ca5f68ea9cb593c62547e91443651865d5c (diff) |
core: when coming back from reload/reexec, reapply all cgroup properties
With this change we'll invalidate all cgroup settings after coming back
from a daemon reload/reexec, so that the new settings are instantly
applied.
This is useful for the BPF case, because we don't serialize/deserialize
the BPF program fd, and hence have to install a new, updated BPF program
when coming back from the reload/reexec. However, this is also useful
for the rest of the cgroup settings, as it ensures that user
configuration really takes effect wherever we can.
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 1d1e2d38e..0ca80d975 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1534,6 +1534,7 @@ static int unit_realize_cgroup_now(Unit *u, ManagerState state) { } static void unit_add_to_cgroup_queue(Unit *u) { + assert(u); if (u->in_cgroup_queue) return; |