]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: use pid_is_valid() where appropriate
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 3 Oct 2017 11:13:06 +0000 (12:13 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 4 Oct 2017 14:40:11 +0000 (15:40 +0100)
commit72b3f82e1771e1070853a084a6108082c59ab0cb
tree846aca38af9ef720218bd881fdcf26db369c2a3a
parent07b38ba51e1b84c560cb745f93c1d3bb91d1d066
systemctl: use pid_is_valid() where appropriate

This was the one valid site in commit
ee043777be58251e7441b4f04594e9e3792d7fb2.

The second part of this hunk, avoiding using `%m`
when we didn't actually have `errno` set, seems
like a nice enough cleanup to be worthwhile on
it's own.

Also use PID_FMT to improve the error message we print
(pid_t is signed).
src/systemctl/systemctl.c