From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C8FBF1F4B4; Fri, 15 Jan 2021 00:18:39 +0000 (UTC) Date: Fri, 15 Jan 2021 00:18:39 +0000 From: Eric Wong To: meta@public-inbox.org Subject: Re: [PATCH 11/14] lei: q: lock stdout on overview output Message-ID: References: <20210114070627.18195-1-e@80x24.org> <20210114070627.18195-12-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210114070627.18195-12-e@80x24.org> List-Id: Will squash this to fix a warning: diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm index 44c21837..ef5f27c1 100644 --- a/lib/PublicInbox/LeiOverview.pm +++ b/lib/PublicInbox/LeiOverview.pm @@ -36,8 +36,6 @@ sub ovv_out_lk_cancel ($) { unlink(delete($self->{lock_path})); } -*DESTROY = \&ovv_out_lk_cancel; - sub new { my ($class, $lei) = @_; my $opt = $lei->{opt}; @@ -220,4 +218,7 @@ sub ovv_each_smsg_cb { } # else { ... } +no warnings 'once'; +*DESTROY = \&ovv_out_lk_cancel; + 1;