diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-21 15:04:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-21 15:04:23 +0200 |
commit | 26ce77961868085c47156adaacb48913e1952da3 (patch) | |
tree | 52842127e6a9e43574fe8e03c82b66769f0fdf4c /src/core/kill.c | |
parent | 213634e47674a3e5eb64a61cdab22c71df7a8894 (diff) | |
parent | ac5e3a505e49c80b56c971a8fc13bacac961640d (diff) |
Merge pull request #1311 from jsynacek/kill-errors-v2
core: extend KillUnit() to return error when no unit was killed
Diffstat (limited to 'src/core/kill.c')
-rw-r--r-- | src/core/kill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/kill.c b/src/core/kill.c index 2de71c6bf9..bddfa4460f 100644 --- a/src/core/kill.c +++ b/src/core/kill.c @@ -60,7 +60,10 @@ DEFINE_STRING_TABLE_LOOKUP(kill_mode, KillMode); static const char* const kill_who_table[_KILL_WHO_MAX] = { [KILL_MAIN] = "main", [KILL_CONTROL] = "control", - [KILL_ALL] = "all" + [KILL_ALL] = "all", + [KILL_MAIN_FAIL] = "main-fail", + [KILL_CONTROL_FAIL] = "control-fail", + [KILL_ALL_FAIL] = "all-fail" }; DEFINE_STRING_TABLE_LOOKUP(kill_who, KillWho); |