]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/slice.c
core: port unit_main_pid() + unit_control_pid() to PidRef and drop unit_kill_common()
authorLennart Poettering <lennart@poettering.net>
Sun, 10 Sep 2023 14:25:02 +0000 (16:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Sep 2023 17:08:09 +0000 (19:08 +0200)
commit37eb258e91c780fd6fe5e44110abd9da71dce6de
tree70505086857e7c3c4121ff59741ceb9b019f5dda
parenta0d1659c237c15c2858e00d0fe015c6ea8ab5ffe
core: port unit_main_pid() + unit_control_pid() to PidRef and drop unit_kill_common()

This ports over unit_main_pid() + unit_control_pid() to return PidRef*
pointers (which also means the underlying UnitVTable function pointers
are changed accordingly).

This then uses te functions to simplify the unit_kill() call, by
avoiding the kill() vtable indirection and instead just suing
unit_main_pid() and unit_control_pid() directly.
TODO
src/core/dbus-service.c
src/core/dbus-unit.c
src/core/mount.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/socket.c
src/core/swap.c
src/core/unit.c
src/core/unit.h