mirror of
https://github.com/systemd/systemd
synced 2024-09-15 22:30:22 +00: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:
parent
2ce2cce3ad
commit
37453b3a2a
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue