summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl-whoami.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* systemctl: generalize GetUnitByPIDFD handlingMike Yuan2024-02-241-143/+19
|
* systemctl-whoami: use pidfd to refer to processesMike Yuan2023-12-061-30/+134
| | | | | | While at it, rephrase the output a bit. Before this commit, if the pid doesn't exist, we output something hard to interpret - "Failed to get unit for ourselves".
* systemctl: implement a new "whoami" verb, that just returns unit of caller/PIDLennart Poettering2023-07-041-0/+70