summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorClinton Roy <clinton.roy@gmail.com>2016-08-20 08:59:02 +1000
committerClinton Roy <clinton.roy@gmail.com>2016-08-20 08:59:02 +1000
commit169d7fb684b39d9132de80f88c53760647f2e042 (patch)
tree7ee90f9c65543bc184276eb557bda3b25de33a46 /src/systemctl
parent29272c04a73b00b5420ee686d73c3bc74d29d169 (diff)
systemctl: kill all units specified on the command line, not just the first one.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 4444e3064d..4b87bdceb2 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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;
}