1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-25 18:50:18 +03:00

Merge pull request #2259 from evverx/fix-test-execute

core: only skip setup of "special" signals in test mode
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-01-04 14:10:13 -05:00
commit d7a2f11bb9

View 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. */
@ -410,9 +413,6 @@ 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