]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-async: Specify FORK_REOPEN_LOG in one more place
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Feb 2025 10:13:51 +0000 (11:13 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Feb 2025 18:56:02 +0000 (19:56 +0100)
Otherwise debugging assertions from the child process is rather hard.

src/test/test-async.c

index ed5fec74d37adc2e0fb1c35a7b4688be6b3fc9f8..f037bac2bb68c855bfd94e339d60e7eed4aa25d5 100644 (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) {