]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
daemon: set FD_CLOEXEC on per-port out= and err= paths
authorEric Wong <e@80x24.org>
Tue, 9 Dec 2025 11:08:09 +0000 (11:08 +0000)
committerEric Wong <e@80x24.org>
Wed, 10 Dec 2025 17:05:47 +0000 (17:05 +0000)
commitd8e484ae25145b9a98e45b649b0ee5b81b43aee0
tree9d936d9de716ebc0088ad2dcb977ef9c9cf596a0
parentc9b872c3e543c619a26769466779b05ce7f3146a
daemon: set FD_CLOEXEC on per-port out= and err= paths

Neither xap_helper nor git(1) subprocesses we spawn use the the
per-port log files we can assign to the daemon processes.  So
ensure these per-port standard err= and out= log files do not
stay open and run servers out-of-space.

Furthermore, we can rely on autodie::fnctl throughout Daemon.pm
to detect errors and remove explicit error checking.
lib/PublicInbox/Daemon.pm