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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-12-25 00:24:16 -05:00
parent 25f17e47f9
commit 5aa1054521

View file

@ -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