chiark / gitweb /
core: do not spawn jobs or touch other units during coldplugging
authorIvan Shapovalov <intelfx100@gmail.com>
Sat, 7 Mar 2015 13:44:52 +0000 (08:44 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Mar 2015 13:44:57 +0000 (08:44 -0500)
Because the order of coldplugging is not defined, we can reference a
not-yet-coldplugged unit and read its state while it has not yet been
set to a meaningful value.

This way, already active units may get started again.

We fix this by deferring such actions until all units have been at
least somehow coldplugged.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=88401


No differences found