]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: add missing OOM check, and shorten code a bit 13905/head
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2019 09:22:03 +0000 (10:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2019 09:22:03 +0000 (10:22 +0100)
commita897a7b837b38de3bde162f4f83d9523558b3516
tree2644d87e5ee311e50efbbb0604bb9bcbfef17e2d
parentc259ac9aa207911bd5fd8ebf90da212e14c12d9b
cgroup: add missing OOM check, and shorten code a bit

cpu_set_to_range_string() can fail due to OOM. Handle that.

unit_write_settingf() exists, use it instead of formatting a string
beforehand.

cpu_set_add_all() can fail due to OOM. Let's avoid it if we don't have
to use it, just copy over the cpuset directly.
src/core/dbus-cgroup.c