]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-watch: allow to log from child process
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 26 Oct 2025 01:07:21 +0000 (10:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 28 Oct 2025 06:22:21 +0000 (15:22 +0900)
Otherwise, it is hard to debug issues in reread_partition_table().

This also drop unnecessary FORK_RLIMIT_NOFILE_SAFE flag.

src/udev/udev-watch.c

index c421063438cb0bd94efa59a6f6b76d27c4810003..b28b7d5c2c24a51f3716a3b2c536f002ee8cdb8b 100644 (file)
@@ -191,7 +191,7 @@ static int synthesize_change(Manager *manager, sd_device *dev) {
         _cleanup_(pidref_done) PidRef pidref = PIDREF_NULL;
         r = pidref_safe_fork(
                         "(udev-synth)",
-                        FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,
+                        FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_LOG|FORK_REOPEN_LOG,
                         &pidref);
         if (r < 0)
                 return r;