]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Don't explicitly check for member in UNIT_BEFORE
authorChris Down <chris@chrisdown.name>
Wed, 12 Dec 2018 10:49:35 +0000 (10:49 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Dec 2018 19:50:10 +0000 (20:50 +0100)
commitcb5e3bc37d5eeb9e85d8b4bdbf6cce0640a448d6
tree50dad7d7265d7baed213e7769255ac07fce491bf
parent2cf0b2fe2d7330ac962aa443a2f12aef00679325
cgroup: Don't explicitly check for member in UNIT_BEFORE

The parent slice is always filtered ahead of time from UNIT_BEFORE, so
checking if the current member is the same as the parent unit will never
pass.

I may also write a SLICE_FOREACH_CHILD macro to remove some more of the
parent slice checks, but this requires a bit of a rework and general
refactoring and may not be worth it, so let's just do this for now.
src/core/cgroup.c