mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
systemctl: kill all units specified on the command line, not just the first one.
This commit is contained in:
parent
29272c04a7
commit
169d7fb684
@ -3384,9 +3384,9 @@ static int kill_unit(int argc, char *argv[], void *userdata) {
|
|||||||
"KillUnit",
|
"KillUnit",
|
||||||
&error,
|
&error,
|
||||||
NULL,
|
NULL,
|
||||||
"ssi", *names, kill_who ? kill_who : arg_kill_who, arg_signal);
|
"ssi", *name, kill_who ? kill_who : arg_kill_who, arg_signal);
|
||||||
if (q < 0) {
|
if (q < 0) {
|
||||||
log_error_errno(q, "Failed to kill unit %s: %s", *names, bus_error_message(&error, q));
|
log_error_errno(q, "Failed to kill unit %s: %s", *name, bus_error_message(&error, q));
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
r = q;
|
r = q;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user