From: Eric Wong Date: Mon, 8 Feb 2021 09:05:10 +0000 (-1000) Subject: lei_xsearch: quiet Eml warnings from remote mboxrds X-Git-Tag: v1.7.0~1164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c642cbd0b4e490d5c0922f0659129c936e5349c8;p=thirdparty%2Fpublic-inbox.git lei_xsearch: quiet Eml warnings from remote mboxrds This will probably cover full Atom/HTML feed generation or any outputs which are order-dependent, but those aren't prioritized at the moment. --- diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index db089a67c..588df3a4b 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -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; }