lei_xsearch: quiet Eml warnings from remote mboxrds
authorEric Wong <e@80x24.org>
Mon, 8 Feb 2021 09:05:10 +0000 (23:05 -1000)
committerEric Wong <e@80x24.org>
Mon, 8 Feb 2021 22:07:41 +0000 (22:07 +0000)
This will probably cover full Atom/HTML feed generation or any
outputs which are order-dependent, but those aren't prioritized
at the moment.

lib/PublicInbox/LeiXSearch.pm

index db089a67ca274a0e53bb7ae67bbdb9b9cc2ca30d..588df3a4b9db9934f1a7b075527bf0d40c1eff28 100644 (file)
@@ -16,6 +16,7 @@ use PublicInbox::Search qw(xap_terms);
 use PublicInbox::Spawn qw(popen_rd spawn which);
 use PublicInbox::MID qw(mids);
 use PublicInbox::Smsg;
+use PublicInbox::Eml;
 use Fcntl qw(SEEK_SET F_SETFL O_APPEND O_RDWR);
 
 sub new {
@@ -376,6 +377,7 @@ sub start_query { # always runs in main (lei-daemon) process
 sub ipc_atfork_child {
        my ($self) = @_;
        $self->{lei}->lei_atfork_child;
+       $SIG{__WARN__} = PublicInbox::Eml::warn_ignore_cb();
        $self->SUPER::ipc_atfork_child;
 }