]> Sergey Matveev's repositories - public-inbox.git/commit
lei: remove @TO_CLOSE_ATFORK_CHILD
authorEric Wong <e@80x24.org>
Thu, 21 Jan 2021 19:46:22 +0000 (19:46 +0000)
committerEric Wong <e@80x24.org>
Fri, 22 Jan 2021 20:18:01 +0000 (16:18 -0400)
commitc39a2d8bb1ee6e062030e21f6b0f638990234b2e
treeaf583fb459925192a2887f20475676baaa473d9b
parentd3f54eb1ac998c79c55f10fbfb5bce389041a0fe
lei: remove @TO_CLOSE_ATFORK_CHILD

..At least limit it to a single file handle.  The write end
EOFpipe can be limited in scope and auto-closed when $quit is
clobbered, leaving only the listener.  The listener is the only
handle that needs to be closed explicitly due to it being on the
stack in the Listener->event_step => accept_dispatch => lei_$FOO
code path.

Everything else gets clobbered by DS->Reset in children after
forking.
lib/PublicInbox/LEI.pm