]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
main: skip many initialization steps when running in --test mode
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 08:31:40 +0000 (10:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 08:37:52 +0000 (10:37 +0200)
commitdea374e898a749a0474b72b2015cca9009b1432b
treeb16ec322cc86bb2f363a0fd957e0b8d16c32e34a
parent586377fc92189657b41a6b76e5bca3fcaf015a46
main: skip many initialization steps when running in --test mode

Most importantly, don't collect open socket activation fds when in
--test mode. This specifically created a problem because we invoke
pager_open() beforehand (which these days makes copies of the original
stdout/stderr in order to be able to restore them when the pager goes
away) and we might mistakenly the fd copies it creates as socket
activation fds.

Fixes: #6383
src/core/main.c