]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/path.c
core: propagate triggered unit in more load states
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 17:49:33 +0000 (19:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 11:05:09 +0000 (13:05 +0200)
commit0377cd2936ae5cac0c9d76a4b58889f121c097c4
tree12c1118cd02354e7ed6e92a514b74adfad0497f6
parent415f8a5bfed4604e4a1bc275682d51af3ad3b611
core: propagate triggered unit in more load states

In 4c2ef3276735ad9f7fccf33f5bdcbe7d8751e7ec we enabled propagating
triggered unit state to the triggering unit for service units in more
load states, so that we don't accidentally stop tracking state
correctly.

Do the same for our other triggering unit states: automounts, paths, and
timers.

Also, make this an assertion rather than a simple test. After all it
should never happen that we get called for half-loaded units or units of
the wrong type. The load routines should already have made this
impossible.
src/core/automount.c
src/core/path.c
src/core/socket.c
src/core/timer.c
src/core/transaction.c
src/core/unit.h