]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/unit: use UNIT_FOREACH_DEPENDENCY_SAFE() at several more places
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Aug 2025 17:06:43 +0000 (02:06 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 Aug 2025 12:41:23 +0000 (13:41 +0100)
commit64fc4917b9149ffe6defaf5ceaf3236324537a3f
treefff39d83673450af30eb5a57e25bf4d1e6989fe1
parentddc9d2a8363f7844969c95ec2922e229f2593f47
core/unit: use UNIT_FOREACH_DEPENDENCY_SAFE() at several more places

manager_add_job() -> transaction_add_job_and_dependencies() may update
dependencies when a unit is not loaded yet. Hence, we need to restart
dependency loop in that case.

Follow-up for b7777d08846033859c5b734317fbbbfcca4cafcb (#37465).
Fixes #38676.
src/core/unit.c