about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiOverview.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-02 22:11:34 -1000
committerEric Wong <e@80x24.org>2021-02-04 01:37:09 +0000
commitb46ef028bde38dee9d6fdc65b232a9c54ac3769a (patch)
treef793b618ccc461dcae03eb0e9138d71bebb8314c /lib/PublicInbox/LeiOverview.pm
parente223568cc22cb125dd3671989ba49eb575c424b3 (diff)
downloadpublic-inbox-b46ef028bde38dee9d6fdc65b232a9c54ac3769a.tar.gz
We don't need to be sending errors directly to the client, but
instead go through lei-daemon or the top-level one-shot process.
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r--lib/PublicInbox/LeiOverview.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index 88034ada..366af8b2 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -216,7 +216,9 @@ sub ovv_each_smsg_cb { # runs in wq worker usually
                         $wcb->(undef, $smsg, $eml);
                 };
         } elsif ($l2m && $l2m->{-wq_s1}) {
+                my $sock = delete $lei->{sock}; # lei2mail doesn't need it
                 my ($lei_ipc, @io) = $lei->atfork_parent_wq($l2m);
+                $lei->{sock} = $sock if $sock;
                 # $io[0] becomes a notification pipe that triggers EOF
                 # in this wq worker when all outstanding ->write_mail
                 # calls are complete