]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: split out the core loop out of main()
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Dec 2017 19:47:28 +0000 (20:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Dec 2017 20:57:35 +0000 (21:57 +0100)
commit7eb350496977fdc8004383e9bdf8ca72f2b3d5b1
tree80c40c9538f802f23bd238494a9758304ce268b1
parent3c7878f94b02f65676889fa58a937ff4d4de4a4d
core: split out the core loop out of main()

No real functional changes, just some rearranging to shorten the overly
long main() function a bit.

This gets rid of the arm_reboot_watchdog variable, as it can be directly
derived from shutdown_verb, and we need it only one time. By dropping it
we can reduce the number of arguments we need to pass around.
src/core/main.c