]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: split out send_ready and basic.target checking into functions of their own
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 15:32:06 +0000 (16:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 15:39:12 +0000 (16:39 +0100)
commit4adf314b770d42d59c8ccfca6642db61d580f26f
tree7948239af210dc71166e95b63aa9c2703367430b
parent8a44b0b849a10e2ae7b2af53964cbfd058552b0f
manager: split out send_ready and basic.target checking into functions of their own

Let's shorten manager_check_finished() a bit by splitting out checking
of basic.target and the two things we do when we reach it.

This should not change behaviour, except for one thing: we now check
basic.target's actual state for figuring out whether it is up, instead
of generically checking whether it has any job queued. This is arguably
more correct, and is what other code does too for similar purposes, for
example manager_state()
src/core/manager.c