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:
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 New Issue
Block a user