mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
killall: fix errno check
This commit is contained in:
parent
4b68f70829
commit
6f7936cf57
|
@ -257,7 +257,7 @@ static int killall(int sig, Set *pids, bool send_sighup) {
|
||||||
|
|
||||||
r = pidref_kill(&pidref, sig);
|
r = pidref_kill(&pidref, sig);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
if (errno != -ESRCH)
|
if (r != -ESRCH)
|
||||||
log_warning_errno(errno, "Could not kill " PID_FMT ", ignoring: %m", pidref.pid);
|
log_warning_errno(errno, "Could not kill " PID_FMT ", ignoring: %m", pidref.pid);
|
||||||
} else {
|
} else {
|
||||||
n_killed++;
|
n_killed++;
|
||||||
|
|
Loading…
Reference in a new issue