chiark / gitweb /
core: when coming back from reload/reexec, reapply all cgroup properties
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Sep 2017 12:32:33 +0000 (14:32 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 7 Sep 2017 12:32:33 +0000 (14:32 +0200)
commite5ff123fa4c23ed39685f8f8dc7f77f1627a81fd
tree11715f33b955e15f1d87eec854e112b893a2e1b0
parentaa963ca5f68ea9cb593c62547e91443651865d5c
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.
src/core/cgroup.c