mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 21:21:49 +00:00
manager: allow test run to catch SIGCHLD events
Otherwise we cannot know when a service exited
This commit is contained in:
committed by
Tom Gundersen
parent
b4c72e52d2
commit
07aa32e31d
@@ -393,9 +393,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
|
||||
|
||||
@@ -104,7 +104,6 @@ static void check_stop_unlink(Manager *m, Unit *unit, const char *test_path, con
|
||||
}
|
||||
|
||||
assert_se(UNIT_VTABLE(unit)->stop(unit) >= 0);
|
||||
assert_se(UNIT_VTABLE(service_unit)->stop(service_unit) >= 0);
|
||||
rm_rf_dangerous(test_path, false, true, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user