diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-06-27 23:11:53 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-06-27 23:34:09 +0200 |
commit | 156ba52b43f4ce795fbc1662f85e2fb4a45dd00a (patch) | |
tree | 98044195e2a16b504bf27f843f2091d91b3a4944 /src | |
parent | core/device: start units specified in SYSTEMD_WANTS if it is not running (diff) | |
download | systemd-156ba52b43f4ce795fbc1662f85e2fb4a45dd00a.tar.xz systemd-156ba52b43f4ce795fbc1662f85e2fb4a45dd00a.zip |
core/unit: try to submit stop_when_unneeded queue on removing dependencies
Fixes #23410.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 180dccc2b2..d933bfc0cc 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; } |