summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-03-07 11:41:18 +0100
committerDaniel Mack <zonque@gmail.com>2014-03-07 11:41:18 +0100
commit36d239dbdaf94ba2d96bb60ac45ecfc58624b1eb (patch)
tree6b8aa88133d118c0c324606a83e5e220f322f740
parent6c49212741253dae05b89d22374186f092ef1e5a (diff)
core/busname: add lookup string for BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT
When a busname unit enters BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT, the serialization will not be able to look up the result as string via busname_result_to_string(). This leads to an assertion trap during daemon-reexec.
-rw-r--r--src/core/busname.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/busname.c b/src/core/busname.c
index 4c34538c65..237011ad4d 100644
--- a/src/core/busname.c
+++ b/src/core/busname.c
@@ -548,6 +548,7 @@ DEFINE_STRING_TABLE_LOOKUP(busname_state, BusNameState);
static const char* const busname_result_table[_BUSNAME_RESULT_MAX] = {
[BUSNAME_SUCCESS] = "success",
[BUSNAME_FAILURE_RESOURCES] = "resources",
+ [BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT] = "failed-permanent",
};
DEFINE_STRING_TABLE_LOOKUP(busname_result, BusNameResult);