test-async: Specify FORK_REOPEN_LOG in one more place

Otherwise debugging assertions from the child process is rather hard.
This commit is contained in:
Daan De Meyer
2025-02-20 11:13:51 +01:00
parent f1f28bbbb7
commit 1cd9049498

View File

@@ -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) {