]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl-show: use lookup_unit_by_pidref too 31472/head
authorMike Yuan <me@yhndnzj.com>
Sat, 24 Feb 2024 01:39:32 +0000 (09:39 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 24 Feb 2024 04:24:41 +0000 (12:24 +0800)
commitd95705cc883bf18eccc9f7ed31c25a9bb9e33850
tree19e6565e010fa2beb67bcc03b71a1a866a4a4e65
parent716a4cdb0e098ebfed366b59c093d5d29e2f54e0
systemctl-show: use lookup_unit_by_pidref too

Follow-up for e0e7bc8223c3f28fcb48db9f0f003d9f03ca46d7

This allows us to pin the process locally when GetUnitByPIDFD
is not available, just like what we have been doing for
'systemctl whoami'. Also, fix looking up remote pid.
We can't use pidfd for those.
src/systemctl/systemctl-show.c