Commit 9a46fc3b authored by Michal Schmidt's avatar Michal Schmidt
Browse files

unit: garbage collect units with load error

Units that failed to load were never cleaned up. It was possible to
reach the 128K limit of units by attempting to load a bunch of nonsense.

Bug observed by Reartes Guillermo in
parent d380a3bc
......@@ -858,6 +858,7 @@ fail:
u->meta.load_state = UNIT_ERROR;
u->meta.load_error = r;
log_debug("Failed to load configuration for %s: %s", u->, strerror(-r));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment