From: Eric Wong Date: Wed, 24 Mar 2021 09:23:29 +0000 (+0500) Subject: lei: drop circular reference in lei_store process X-Git-Tag: v1.7.0~919 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=954eb66a5bcf5447cec47bb89f4afd99a5952891;p=public-inbox.git lei: drop circular reference in lei_store process I'm not sure if this was causing real problems, but it's sure ugly. --- 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};