mirror of
https://github.com/systemd/systemd
synced 2024-10-14 12:04:49 +00:00
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:
parent
25f17e47f9
commit
5aa1054521
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue