From: Evgeny Vereshchagin Date: Mon, 4 Jan 2016 18:39:55 +0000 (+0000) Subject: core: don't enable special signals in test mode X-Git-Tag: v229~173^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2259%2Fhead;p=thirdparty%2Fsystemd.git core: don't enable special signals in test mode Fixes: $ systemd-analyze verify ... Failed to open /dev/tty0: Permission denied --- diff --git a/src/core/manager.c b/src/core/manager.c index ffe27be7432..711b0cdcee3 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -380,6 +380,9 @@ static int enable_special_signals(Manager *m) { assert(m); + if (m->test_run) + return 0; + /* Enable that we get SIGINT on control-alt-del. In containers * this will fail with EPERM (older) or EINVAL (newer), so * ignore that. */