logind: use correct "who" enum values with KillUnit.

NB This is already fixed differently in systemd 209 with the port to kdbus
This commit is contained in:
Marius Vollmer
2014-02-23 12:41:53 +00:00
committed by Colin Guthrie
parent 04bbe7a7e0
commit 07138cd296
+2 -2
View File
@@ -2799,7 +2799,7 @@ int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo
assert(manager);
assert(unit);
w = who == KILL_LEADER ? "process" : "cgroup";
w = who == KILL_LEADER ? "control" : "all";
assert_cc(sizeof(signo) == sizeof(int32_t));
r = bus_method_call_with_reply(
@@ -2815,7 +2815,7 @@ int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo
DBUS_TYPE_INT32, &signo,
DBUS_TYPE_INVALID);
if (r < 0) {
log_error("Failed to stop unit %s: %s", unit, bus_error(error, r));
log_error("Failed to kill unit %s: %s", unit, bus_error(error, r));
return r;
}