diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-12-25 00:24:16 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-12-25 00:24:16 -0500 |
commit | 5aa1054521596c3d268db5f4aff9f2b69647ffc9 (patch) | |
tree | 463226f1e6b245e19369559bffd97d5d516cd558 | |
parent | 25f17e47f9a76d6b6ee5f10972ad5939255046ca (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.
-rw-r--r-- | src/core/manager.c | 3 |
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 |