1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

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

This commit is contained in:
Lennart Poettering 2010-05-18 04:05:27 +02:00
parent 21de3988ab
commit b86d44e5ab

View File

@ -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;