From 84f3f30e72b10ffacab09da6336090ea9f0c049d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 26 Oct 2025 10:07:21 +0900 Subject: [PATCH] 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. --- src/udev/udev-watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c index c421063438..b28b7d5c2c 100644 --- a/src/udev/udev-watch.c +++ b/src/udev/udev-watch.c @@ -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;