diff options
author | Eric Wong <e@80x24.org> | 2023-11-15 09:21:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-16 10:56:54 +0000 |
commit | 87981c405d27597a19f34b01a0763aed2be6dcf3 (patch) | |
tree | a1069781fc417200945e9b42921e4ca84850825e /lib/PublicInbox/LeiXSearch.pm | |
parent | 72e0fcd979719f62bce89a029875e15a4cb497bb (diff) | |
download | public-inbox-87981c405d27597a19f34b01a0763aed2be6dcf3.tar.gz |
We need to consistently check the exit code of pigz|gzip|xz|bzip2 when writing to compressed mboxes (or bad storage).
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 5e36c11a..cee3ad07 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -393,14 +393,7 @@ sub query_done { # EOF callback for main daemon $lei->sto_done_request; $lei->{ovv}->ovv_end($lei); if ($l2m) { # close() calls LeiToMail reap_compress - if (my $out = delete $lei->{old_1}) { - if (my $mbout = $lei->{1}) { # compressor pipe process - $mbout->close or die <<""; -Error closing $lei->{ovv}->{dst}: \$!=$! \$?=$? - - } - $lei->{1} = $out; - } + $l2m->finish_output($lei); if ($l2m->lock_free) { $l2m->poke_dst; $lei->poke_mua; |