mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-31 01:47:15 +03:00
unit: don't gc units that are still in STUB state
This commit is contained in:
parent
21de3988ab
commit
b86d44e5ab
@ -213,6 +213,9 @@ int unit_set_description(Unit *u, const char *description) {
|
||||
bool unit_check_gc(Unit *u) {
|
||||
assert(u);
|
||||
|
||||
if (u->meta.load_state == UNIT_STUB)
|
||||
return true;
|
||||
|
||||
if (UNIT_VTABLE(u)->no_gc)
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user