chiark / gitweb /
core/busname: add lookup string for BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT
authorDaniel Mack <zonque@gmail.com>
Fri, 7 Mar 2014 10:41:18 +0000 (11:41 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 7 Mar 2014 10:41:18 +0000 (11:41 +0100)
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.

src/core/busname.c

index 4c34538..237011a 100644 (file)
@@ -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);