]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
systemd: Cleanup return codes in cgroup_create_scope()
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 4 Apr 2023 21:31:12 +0000 (21:31 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 20 Apr 2023 20:17:30 +0000 (14:17 -0600)
commit0b25e39f0b59de4d556906cd7a02fd22565a1317
tree2b66d9d35671c1b39dc86c8852d46a66328de307
parent153e1e53f798458ed62fd8aad2d44b04f842aae9
systemd: Cleanup return codes in cgroup_create_scope()

cgroup_create_scope() used a single variable, ret, to handle return
codes from systemd/dbus, system calls, and internal libcgroup functions.
Use a separate return variable for each of these three cases to clearly
delineate errors.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
(cherry picked from commit 41a2451f4e360de90c5d00c32464da73c016f016)
src/systemd.c