chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21de398
)
unit: don't gc units that are still in STUB state
author
Lennart Poettering
<lennart@poettering.net>
Tue, 18 May 2010 02:05:27 +0000
(
04:05
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 May 2010 02:05:27 +0000
(
04:05
+0200)
src/unit.c
patch
|
blob
|
history
diff --git
a/src/unit.c
b/src/unit.c
index 1959b1b940074d0ff23dd81ed3be72d511814f6a..374d2e133106def502cca34b9e24f364af1d9cdd 100644
(file)
--- a/
src/unit.c
+++ b/
src/unit.c
@@
-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;