From 47035fd4b54ceb0da2f71d28b99a962acac576f4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 02:48:59 +0000 Subject: daemon: set $SIG{__WARN__} properly Eml->warn_ignore_cb itself returns a callback, so creating a reference to it was wrong when assigning it to $SIG{__WARN__}; Fixes: 176cd51f9aa81b74 ("daemon: quiet down Eml-related warnings") --- lib/PublicInbox/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index 5c64e84c..90b77412 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -643,7 +643,7 @@ sub run ($$$;$) { # localize GCF2C for tests: local $PublicInbox::GitAsyncCat::GCF2C; local $PublicInbox::Git::async_warn = 1; - local $SIG{__WARN__} = \&PublicInbox::Eml::warn_ignore_cb; + local $SIG{__WARN__} = PublicInbox::Eml::warn_ignore_cb(); daemon_loop($refresh, $post_accept, $tlsd, $af_default); PublicInbox::DS->Reset; -- cgit v1.2.3-24-ge0c7