mirror of
https://github.com/systemd/systemd.git
synced 2024-12-13 04:03:35 +08:00
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.
This commit is contained in:
parent
6c49212741
commit
36d239dbda
Notes:
Zbigniew Jędrzejewski-Szmek
2014-03-07 08:50:29 -05:00
Backport: bugfix
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user