udev-watch: allow to log from child process

Otherwise, it is hard to debug issues in reread_partition_table().

This also drop unnecessary FORK_RLIMIT_NOFILE_SAFE flag.
This commit is contained in:
Yu Watanabe
2025-10-28 15:22:21 +09:00
parent a6146b250e
commit 84f3f30e72
+1 -1
View 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;