]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
main: move install_crash_handler() and mount_cgroup_controllers() invocations
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 16:34:12 +0000 (17:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 19:52:28 +0000 (20:52 +0100)
commit3c3c6cb95d70a248d88cc49e43329784858ba7c1
treeba1a42557d7cd604e03120d6954eff3585f1ce06
parentdb33214b528af9d04d552444dc96e8ccc7f03ddd
main: move install_crash_handler() and mount_cgroup_controllers() invocations

Let's place them in initialize_runtime(), where they appear to fit best.
Effectively this is just a move a little bit down, swapping places with
log_execution_mode(), which should require neither call to be done
first.

Note that changes the conditionalization a bit for these calls, from
(PID == 1) to (arg_system && arg_action == ACTION_RUN). At this point this is pretty much the same
however, as we don't allow PID 1 without ACTION_RUN and without
arg_system set, safety_checks() ensures that.
src/core/main.c