diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-19 16:35:26 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2025-01-06 09:54:41 +0100 |
commit | 92d78966fd604d818fba86e65ef6693983178acd (patch) | |
tree | 23edc13f76e05f8ec96bc9f14605e9176c953445 /src/test | |
parent | socket-util: introduce getpeerpidref() (diff) | |
download | systemd-92d78966fd604d818fba86e65ef6693983178acd.tar.xz systemd-92d78966fd604d818fba86e65ef6693983178acd.zip |
cgroup-util: add pidref counterparts for cg_pid_get_session() + cg_pid_get_owner_uid()
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-cgroup-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index 1d8f99cc6e..9fa3ddf9d1 100644 --- a/src/test/test-cgroup-util.c +++ b/src/test/test-cgroup-util.c @@ -212,8 +212,8 @@ TEST(proc) { cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, pid.pid, &path); cg_pid_get_path_shifted(pid.pid, NULL, &path_shifted); - cg_pid_get_owner_uid(pid.pid, &uid); - cg_pid_get_session(pid.pid, &session); + cg_pidref_get_owner_uid(&pid, &uid); + cg_pidref_get_session(&pid, &session); cg_pid_get_unit(pid.pid, &unit); cg_pid_get_user_unit(pid.pid, &user_unit); cg_pid_get_machine_name(pid.pid, &machine); |