]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: extend reasons when we realize the enable mask
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 00:03:18 +0000 (01:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 12:41:37 +0000 (13:41 +0100)
commit1fd3a10c38a0be4fc42ae94cf9f8401003187b80
treeca01533bf24aa85e51dad41e324f7ab937a6aabf
parentd5095dcd307fc67b7a641d3dd26fed2bb48f2bb8
cgroup: extend reasons when we realize the enable mask

After creating a cgroup we need to initialize its
"cgroup.subtree_control" file with the controllers its children want to
use. Currently we do so whenever the mkdir() on the cgroup succeeded,
i.e. when we know the cgroup is "fresh". Let's update the condition
slightly that we also do so when internally we assume a cgroup doesn't
exist yet, even if it already does (maybe left-over from a previous
run).

This shouldn't change anything IRL but make things a bit more robust.
src/core/cgroup.c