1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

systemctl: kill all units specified on the command line, not just the first one.

This commit is contained in:
Clinton Roy 2016-08-20 08:59:02 +10:00
parent 29272c04a7
commit 169d7fb684

View File

@ -3384,9 +3384,9 @@ static int kill_unit(int argc, char *argv[], void *userdata) {
"KillUnit",
&error,
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) {
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)
r = q;
}