Files
systemd/man
Luca Boccassi e0e7bc8223 core: add GetUnitByPIDFD method and use it in systemctl
A pid can be recycled, but a pidfd is pinned. Add a new method that is safer
as it takes a pidfd as input.
Return not only the D-Bus object path, but also the unit id and the last
recorded invocation id, as they are both useful (especially the id, as
converting from a path object to a unit id from a script requires another
round-trip via D-Bus).

Note that the manager still tracks processes by pid, so theorethically this
is not fully error-proof, but on the other hand the method response is
synchronous and the manager is single-threaded, so once a call is being
processed the unit database will not change anyway. Once the manager
switches to use pidfds everywhere, this can be further hardened.
2023-01-18 10:58:46 +01:00
..
2022-10-14 15:56:58 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 16:05:31 +02:00
2022-11-16 00:12:16 +01:00
2023-01-15 17:19:10 +00:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2022-12-07 10:26:31 +01:00
2022-03-07 15:32:22 +09:00
2021-06-30 23:33:00 +09:00
2022-01-06 22:20:11 +09:00
2021-11-30 13:54:27 +01:00
2023-01-10 18:28:38 +01:00
2022-08-23 12:14:58 +02:00
2022-08-28 00:03:36 +09:00
2022-03-21 20:06:13 +00:00