mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
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:
committed by
Colin Guthrie
parent
04bbe7a7e0
commit
07138cd296
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user