]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/transaction.c
core: Check transaction against execution cycles
authorMichal Koutný <mkoutny@suse.com>
Thu, 6 Jun 2019 21:27:20 +0000 (23:27 +0200)
committerMichal Koutný <xm.koutny@gmail.com>
Wed, 26 Jun 2019 21:16:31 +0000 (23:16 +0200)
commitdfd79eca55e3d4bd61813ca4cf8887544d952c28
treed8e38e00c7eee78f21d05fb2526818d06f5fd1ea
parente602f15282bcb413857e5ed06b0b02985cea1cbe
core: Check transaction against execution cycles

When we are validating a transaction, we take into account declared
ordering between job units. However, since JOB_STOP goes always first
regardless of the ordering constraint between respective units, we may
detect some false cycles in the transaction which would not prevent the
execution though.

Use the same logic in transaction checking as we use for job execution.
src/core/transaction.c