From 954eb66a5bcf5447cec47bb89f4afd99a5952891 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 24 Mar 2021 14:23:29 +0500 Subject: lei: drop circular reference in lei_store process I'm not sure if this was causing real problems, but it's sure ugly. --- lib/PublicInbox/LEI.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 8cbaac01..ee991f80 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -458,6 +458,9 @@ sub _lei_atfork_child { unless ($self->{oneshot}) { close($_) for @io; } + if (my $cfg = $self->{cfg}) { + delete $cfg->{-lei_store}; + } } else { # worker, Net::NNTP (Net::Cmd) uses STDERR directly open STDERR, '+>&='.fileno($self->{2}) or warn "open $!"; delete $self->{0}; -- cgit v1.2.3-24-ge0c7