]> 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:05:59 +0000 (14:05 -0600)
commit41a2451f4e360de90c5d00c32464da73c016f016
treef30721fe25929cc5fc5d269372040614abd84d8d
parent3371bbb2b388dfa34f948fd8c17261bd31c8c022
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>
src/systemd.c