]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: tiny tweak for cgroup trimming during manager_free()
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2018 13:56:27 +0000 (15:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2018 17:43:43 +0000 (19:43 +0200)
commit86036b26a1da4d90ca274d37e77c56980ab689fd
treece4acb8be92a69e806ca565731973dc7306232c3
parent3ad228ce75a41925c399f3017355fa4b396ee447
core: tiny tweak for cgroup trimming during manager_free()

Instead of blacklisting when not to trim the cgroup tree, let's instead
whitelist when to do it, as an excercise of being careful when being
destructive.

This should not change behaviour with exception that during switch roots
we now won't attempt to trim the cgroup tree anymore. Which is more
correct behaviour after all we serialize/deserialize during the
transition and should be needlessly destructive.
src/core/manager.c