]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
process-util: leave actual log fd closing to close_all_fds() if the latter will be...
authorMike Yuan <me@yhndnzj.com>
Sat, 28 Feb 2026 21:43:31 +0000 (22:43 +0100)
committerMike Yuan <me@yhndnzj.com>
Sun, 1 Mar 2026 12:18:19 +0000 (13:18 +0100)
src/basic/process-util.c

index 3f2c2d3b23815847011df32374ba358d5d0867d3..e3d6b3905d4578cf853b6991e458582acf8685c3 100644 (file)
@@ -1808,7 +1808,7 @@ int namespace_fork_full(
                         return 0;
                 }
 
-                log_close();
+                log_forget_fds();
                 log_set_open_when_needed(true);
 
                 (void) close_all_fds(&pidref_inner.fd, 1);