summaryrefslogtreecommitdiff
path: root/src/core/kill.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-21 15:04:23 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-21 15:04:23 +0200
commit26ce77961868085c47156adaacb48913e1952da3 (patch)
tree52842127e6a9e43574fe8e03c82b66769f0fdf4c /src/core/kill.c
parent213634e47674a3e5eb64a61cdab22c71df7a8894 (diff)
parentac5e3a505e49c80b56c971a8fc13bacac961640d (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.c5
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);