]> git.ipfire.org Git - thirdparty/systemd.git/commit
main: initialize default unit little later (#4321)
author0xAX <0xAX@users.noreply.github.com>
Mon, 10 Oct 2016 02:57:03 +0000 (05:57 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Oct 2016 02:57:03 +0000 (22:57 -0400)
commit10c961b9c9625d4e0408b5f21e2ba815148ccf63
tree51fa8bd19cac6e14fc504892320421c17e2ad368
parent9fc932bff1e2058885fc458412b3c94d586cb586
main: initialize default unit little later (#4321)

systemd fills arg_default_unit during startup with default.target
value. But arg_default_unit may be overwritten in parse_argv() or
parse_proc_cmdline_item().

Let's check value of arg_default_unit after calls of parse_argv()
and parse_proc_cmdline_item() and fill it with default.target if
it wasn't filled before. In this way we will not spend unnecessary
time to for filling arg_default_unit with default.target.
src/core/main.c