From: Clinton Roy Date: Fri, 19 Aug 2016 22:59:02 +0000 (+1000) Subject: systemctl: kill all units specified on the command line, not just the first one. X-Git-Tag: v232~273^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=169d7fb684b39d9132de80f88c53760647f2e042;p=thirdparty%2Fsystemd.git systemctl: kill all units specified on the command line, not just the first one. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 4444e3064d3..4b87bdceb2d 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; }