core: don't enable special signals in test mode

Fixes:
$ systemd-analyze verify ...
Failed to open /dev/tty0: Permission denied
This commit is contained in:
Evgeny Vereshchagin 2016-01-04 18:39:55 +00:00
parent 2ce2cce3ad
commit 37453b3a2a
1 changed files with 3 additions and 0 deletions

View File

@ -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. */