]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl-whoami: use pidfd to refer to processes
authorMike Yuan <me@yhndnzj.com>
Sat, 25 Nov 2023 14:10:16 +0000 (22:10 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Dec 2023 21:15:38 +0000 (21:15 +0000)
commitfb45185d98a7cd559553c35f415d358345a3fd08
tree5c9e4f3f5ff02581200cdeb74d50ef860c1d207e
parentcbc51d0cf4593bd915462daa2840dbc1ca580272
systemctl-whoami: use pidfd to refer to processes

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".
src/systemctl/systemctl-whoami.c