]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/cgroup: fix return value of unit_cgorup_freezer_action()
authorMichal Sekletar <msekleta@redhat.com>
Thu, 7 May 2020 15:23:30 +0000 (17:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 May 2020 20:19:19 +0000 (22:19 +0200)
commitd910f4c2b2542544d7b187a09605da7a0f220837
tree4ea39d6f0a5d6749a6946291c6f241909116ce26
parentc60bc8d4fb21085600b9467f153a742df7ad1054
core/cgroup: fix return value of unit_cgorup_freezer_action()

We should return 0 only if current freezer state, as reported by the
kernel, is already the desired state. Otherwise, we would dispatch
return dbus message prematurely in bus_unit_method_freezer_generic().

Thanks to Frantisek Sumsal for reporting the issue.
src/core/cgroup.c