]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: don't enable special signals in test mode 2259/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 4 Jan 2016 18:39:55 +0000 (18:39 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 4 Jan 2016 18:39:55 +0000 (18:39 +0000)
Fixes:
$ systemd-analyze verify ...
Failed to open /dev/tty0: Permission denied

src/core/manager.c

index ffe27be7432fefa39f79bfa49639747f89f04ac5..711b0cdcee386c6370752d8ae0b30ae14557b55c 100644 (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. */