about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-24 14:23:29 +0500
committerEric Wong <e@80x24.org>2021-03-24 23:01:17 +0000
commit954eb66a5bcf5447cec47bb89f4afd99a5952891 (patch)
tree6f2f8be0ab072b970f3e47e0398b2553fb075bbf
parent5577a83631e057a31489aa1ce8d1d35ac33f9d7d (diff)
downloadpublic-inbox-954eb66a5bcf5447cec47bb89f4afd99a5952891.tar.gz
I'm not sure if this was causing real problems, but it's sure ugly.
-rw-r--r--lib/PublicInbox/LEI.pm3
1 files changed, 3 insertions, 0 deletions
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};