summaryrefslogtreecommitdiff
path: root/src/core/kill.c
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2015-09-18 11:56:53 +0200
committerJan Synacek <jsynacek@redhat.com>2015-09-21 10:05:49 +0200
commitac5e3a505e49c80b56c971a8fc13bacac961640d (patch)
treee3cae8e85e61140e2c4b983240ed7cff62c0ba90 /src/core/kill.c
parent8c710f3ce64110a4cfe977116c55bd87777e641c (diff)
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);