diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-05 10:28:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-10-05 11:11:04 +0200 |
commit | bd1791b597e9e43cfc55441d67952854f68c3d4b (patch) | |
tree | a47236a4e0117480922990d00cddc595e69fee85 /src/udev/udev-manager.c | |
parent | sd-boot: introduce and use efivar_unset() (diff) | |
download | systemd-bd1791b597e9e43cfc55441d67952854f68c3d4b.tar.xz systemd-bd1791b597e9e43cfc55441d67952854f68c3d4b.zip |
cgroup-util: drop "controller" argument from various cgroup helper calls
systemd's own cgroup hierarchy is special to us, we use it to actually
manage processes. Because of that many calls tha apply to cgroups are
only ever called with the SYSTEMD_CGROUP_CONTROLLER as controller
argument. Let's hence remove the argument altogether.
This in particular touches the kill and xattr routines.
This changes no behaviour, we just drop an argument that is always set
to the same value anyway.
This is preparation to eventually getting rid of the cgroupvs1, because
on cgroupvs2 the cgroup paths do not change for different controllers,
there's only a single hierarchy there.
Diffstat (limited to 'src/udev/udev-manager.c')
-rw-r--r-- | src/udev/udev-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-manager.c b/src/udev/udev-manager.c index 6653de6b45..88a4c608e4 100644 --- a/src/udev/udev-manager.c +++ b/src/udev/udev-manager.c @@ -1183,7 +1183,7 @@ static int on_post(sd_event_source *s, void *userdata) { if (manager->cgroup) /* cleanup possible left-over processes in our cgroup */ - (void) cg_kill(SYSTEMD_CGROUP_CONTROLLER, manager->cgroup, SIGKILL, CGROUP_IGNORE_SELF, NULL, NULL, NULL); + (void) cg_kill(manager->cgroup, SIGKILL, CGROUP_IGNORE_SELF, /* set=*/ NULL, /* kill_log= */ NULL, /* userdata= */ NULL); return 1; } |