Commit b86d44e5 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

unit: don't gc units that are still in STUB state

parent 21de3988
......@@ -213,6 +213,9 @@ int unit_set_description(Unit *u, const char *description) {
bool unit_check_gc(Unit *u) {
if (u->meta.load_state == UNIT_STUB)
return true;
if (UNIT_VTABLE(u)->no_gc)
return true;
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