]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
core: introduce MANAGER_IS_RELOADING() macro
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Feb 2016 20:36:09 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:30 +0000 (13:43 +0200)
commit2c289ea8332a2c0777d8940058ff7a6293f59b6c
treeff77eb03f3e9a5f4e39c73b85d122f5abaa0ac45
parent463d0d15690c7abe2172a23ae23c5547693dd71f
core: introduce MANAGER_IS_RELOADING() macro

This replaces the old function call manager_is_reloading_or_reexecuting() which
was used only at very few places. Use the new macro wherever we check whether
we are reloading. This should hopefully make things a bit more readable, given
the nature of Manager:n_reloading being a counter.
src/core/job.c
src/core/manager.c
src/core/manager.h
src/core/scope.c
src/core/service.c
src/core/transaction.c
src/core/unit.c