From c642cbd0b4e490d5c0922f0659129c936e5349c8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:10 -1000 Subject: 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. --- lib/PublicInbox/LeiXSearch.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index db089a67..588df3a4 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; } -- cgit v1.2.3-24-ge0c7