diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-18 04:43:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-18 04:48:26 +0100 |
commit | de58a50e24a0d55e3bbcc77f8f6170a7322acf52 (patch) | |
tree | 92306bb846d9e1af42b60376f652042c7eb0025f /src/machine/machined-dbus.c | |
parent | df23374071f497831c4d25076a12b1da41054271 (diff) |
machined: fix Kill() bus call on machine objects when "what" is specified as "leader"
Diffstat (limited to 'src/machine/machined-dbus.c')
-rw-r--r-- | src/machine/machined-dbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index 09d28bbb33..947310542c 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -655,7 +655,7 @@ int manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, c return 1; } -int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *error) { +int manager_kill_unit(Manager *manager, const char *unit, int signo, sd_bus_error *error) { assert(manager); assert(unit); @@ -667,7 +667,7 @@ int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo "KillUnit", error, NULL, - "ssi", unit, who == KILL_LEADER ? "main" : "all", signo); + "ssi", unit, "all", signo); } int manager_unit_is_active(Manager *manager, const char *unit) { |