]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
daemon: reopen log files atomically
authorEric Wong <e@80x24.org>
Mon, 16 Jun 2025 20:05:13 +0000 (20:05 +0000)
committerEric Wong <e@80x24.org>
Mon, 16 Jun 2025 20:10:53 +0000 (20:10 +0000)
commit62b462a9845cacd3e7f45386cf12502d6456e01c
tree4223e1d9af9775e42b00bb3370e27afa184cfa63
parent79fed202af0d05d50dee398444a90947ba7c2a3b
daemon: reopen log files atomically

Ensuring there is no window for a Perl IO (file handle) to be
invalid is useful in case some code ever gets used in a
multithreaded environment.  The FD stability would also be less
confusing for users using `lsof(8)' or similar to track FDs.
lib/PublicInbox/Daemon.pm