From 37453b3a2a68406c0b3c903e85fb1101fab67a44 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Mon, 4 Jan 2016 18:39:55 +0000 Subject: core: don't enable special signals in test mode Fixes: $ systemd-analyze verify ... Failed to open /dev/tty0: Permission denied --- src/core/manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/manager.c b/src/core/manager.c index ffe27be743..711b0cdcee 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. */ -- cgit v1.2.3-54-g00ecf