summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-25 00:24:16 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-25 00:24:16 -0500
commit5aa1054521596c3d268db5f4aff9f2b69647ffc9 (patch)
tree463226f1e6b245e19369559bffd97d5d516cd558 /src/core
parent25f17e47f9a76d6b6ee5f10972ad5939255046ca (diff)
manager: do not set up signals in test mode
When we are running in test mode, we don't expect any signals. In fact ^C should end the program. This also avoids permission issues when running systemd-analyze verify.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 34dd715e93..82563840c4 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -410,6 +410,9 @@ static int manager_setup_signals(Manager *m) {
assert(m);
+ if (m->test_run)
+ return 0;
+
assert_se(sigaction(SIGCHLD, &sa, NULL) == 0);
/* We make liberal use of realtime signals here. On