From: Daan De Meyer Date: Thu, 20 Feb 2025 10:13:51 +0000 (+0100) Subject: test-async: Specify FORK_REOPEN_LOG in one more place X-Git-Tag: v258-rc1~1281^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd904949879cbcff2070aeedf3000ceb47558ef;p=thirdparty%2Fsystemd.git test-async: Specify FORK_REOPEN_LOG in one more place Otherwise debugging assertions from the child process is rather hard. --- diff --git a/src/test/test-async.c b/src/test/test-async.c index ed5fec74d37..f037bac2bb6 100644 --- a/src/test/test-async.c +++ b/src/test/test-async.c @@ -81,7 +81,7 @@ TEST(asynchronous_rm_rf) { /* Do this once more, from a subreaper. Which is nice, because we can watch the async child even * though detached */ - r = safe_fork("(subreaper)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_LOG|FORK_WAIT, NULL); + r = safe_fork("(subreaper)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REOPEN_LOG|FORK_LOG|FORK_WAIT, NULL); ASSERT_OK(r); if (r == 0) {