]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: remove per-child SIG{__WARN__}
authorEric Wong <e@80x24.org>
Mon, 1 Feb 2021 08:28:15 +0000 (22:28 -1000)
committerEric Wong <e@80x24.org>
Mon, 1 Feb 2021 11:38:09 +0000 (11:38 +0000)
The top-level $SIG{__WARN__} using $current_lei does the job,
already.

lib/PublicInbox/LEI.pm

index 3ed330f99315f74f351b84a07a5ee8069534046b..ceba16e4aea00fff897e0bf10cfb344c0604b88c 100644 (file)
@@ -359,8 +359,7 @@ sub atfork_child_wq {
        %PATH2CFG = ();
        undef $errors_log;
        $quit = \&CORE::exit;
-       (__WARN__ => sub { err($self, @_) },
-       PIPE => sub {
+       (PIPE => sub {
                $self->x_it(13); # SIGPIPE = 13
                # we need to close explicitly to avoid Perl warning on SIGPIPE
                for my $i (1, 2) {