[systemd-commits] src/core
Daniel Mack
zonque at kemper.freedesktop.org
Fri Mar 7 02:44:12 PST 2014
src/core/busname.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 36d239dbdaf94ba2d96bb60ac45ecfc58624b1eb
Author: Daniel Mack <zonque at gmail.com>
Date: Fri Mar 7 11:41:18 2014 +0100
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 4c34538..237011a 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);
More information about the systemd-commits
mailing list