summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx100@gmail.com>2015-04-27 21:19:02 +0300
committerLennart Poettering <lennart@poettering.net>2015-04-27 21:45:12 +0200
commit4370633083dd9453da183c468cf89cc17254ac39 (patch)
tree815b2c330f6c493a4c38ae449ba6042189f059a8 /src/core/unit.c
parent329c542585cd92cb905990e3bf59eda16fd88cfb (diff)
core: coldplug all units which participate in jobs during coldplugging
This is yet another attempt to fix coldplugging order (more especially, the problem which happens when one creates a job during coldplugging and it references a not-yet-coldplugged unit). Now we forcibly coldplug all units which participate in jobs. This is a superset of previously implemented handling of the UNIT_TRIGGERS dependencies, so that handling is removed. http://lists.freedesktop.org/archives/systemd-devel/2015-April/031212.html https://bugs.freedesktop.org/show_bug.cgi?id=88401 (once again)
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 496db6c4cd..b7ab084de9 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -2893,14 +2893,6 @@ int unit_coldplug(Unit *u) {
u->coldplugged = true;
- /* Make sure everything that we might pull in through
- * triggering is coldplugged before us */
- SET_FOREACH(other, u->dependencies[UNIT_TRIGGERS], i) {
- r = unit_coldplug(other);
- if (r < 0)
- return r;
- }
-
if (UNIT_VTABLE(u)->coldplug) {
r = UNIT_VTABLE(u)->coldplug(u);
if (r < 0)