1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-27 03:21:32 +03:00

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

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