summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-01-04 18:39:55 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-01-04 18:39:55 +0000
commit37453b3a2a68406c0b3c903e85fb1101fab67a44 (patch)
tree5d1b84081986fa030e87eecc0cc29d4d3c2b1a60 /src/core/manager.c
parent2ce2cce3adf3698fe2ecb06e26f99e0695e046b5 (diff)
core: don't enable special signals in test mode
Fixes: $ systemd-analyze verify ... Failed to open /dev/tty0: Permission denied
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c3
1 files changed, 3 insertions, 0 deletions
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. */