From: Yu Watanabe Date: Sun, 26 Oct 2025 01:07:21 +0000 (+0900) Subject: udev-watch: allow to log from child process X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84f3f30e72b10ffacab09da6336090ea9f0c049d;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c index c421063438c..b28b7d5c2c2 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;