From: Yu Watanabe Date: Mon, 27 Jun 2022 21:11:53 +0000 (+0900) Subject: core/unit: try to submit stop_when_unneeded queue on removing dependencies X-Git-Tag: v252-rc1~479^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=156ba52b43f4ce795fbc1662f85e2fb4a45dd00a;p=thirdparty%2Fsystemd.git core/unit: try to submit stop_when_unneeded queue on removing dependencies Fixes #23410. --- diff --git a/src/core/unit.c b/src/core/unit.c index 180dccc2b29..d933bfc0cc0 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -5165,6 +5165,9 @@ void unit_remove_dependencies(Unit *u, UnitDependencyMask mask) { unit_add_to_gc_queue(other); + /* The unit 'other' may not be wanted by the unit 'u'. */ + unit_submit_to_stop_when_unneeded_queue(other); + done = false; break; }