From: Daniel Mack Date: Fri, 7 Mar 2014 10:41:18 +0000 (+0100) Subject: core/busname: add lookup string for BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT X-Git-Tag: v211~72 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=36d239dbdaf94ba2d96bb60ac45ecfc58624b1eb;p=elogind.git 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. --- diff --git a/src/core/busname.c b/src/core/busname.c index 4c34538c6..237011ad4 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);