From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 002EF1F406 for ; Thu, 9 Nov 2023 10:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1699524587; bh=cyoZKoEBw+C9z/d+3O7t47l2At2urHxocYFPh5lY0Yo=; h=From:To:Subject:Date:From; b=ujTKV9DjqEQnarNPvCWU0qyuodUKnPme6R+0/DRwG7jf+JCUmKDvbWD2DS6kWwcrD DYs1DWJCgvkqjAoru4oTmWX06dsrSBwMllEM0xWMEtED/GrW3eVWOfZj01Yq4h+VdP atiTncC3tzgUtEomfqGQ8vM8wksJ4O/bEmpsXKPQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/13] misc error handling stuff and simplifications Date: Thu, 9 Nov 2023 10:09:33 +0000 Message-ID: <20231109100946.1440611-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 1-4 were things I noticed while chasing the lei SIGPIPE handling fix. 5-7 are things I noticed while testing on Dragonfly and NetBSD. 8 was noticed randomly while working on a new mirror, and the last few complete the work which let me get rid of tied IO handles in favor of using the PublicInbox::IO subclass. Eric Wong (13): lei_xsearch: put query in process title for debugging lei: use cached $daemon_pid when possible lei: reuse FDs atfork and close explicitly lei_up: use v5.12 net_nntp_socks: more comments around how it works lei ls-mail-source: gracefully handle network failures net: retry on EINTR and check for {quit} flag lei_mirror: note missing local manifests are non-fatal ipc: simplify partial sendmsg fallback lei_input: always close single `eml' inputs xapcmd: get rid of scalar wantarray popen_rd lei: get rid of autoreap usage spawn: get rid of wantarray popen_rd/popen_wr lib/PublicInbox/IPC.pm | 13 ++------ lib/PublicInbox/LEI.pm | 11 ++++--- lib/PublicInbox/LeiInput.pm | 26 +++++++-------- lib/PublicInbox/LeiLsMailSource.pm | 6 ++-- lib/PublicInbox/LeiMirror.pm | 5 +-- lib/PublicInbox/LeiRemote.pm | 14 ++++---- lib/PublicInbox/LeiUp.pm | 10 +++--- lib/PublicInbox/LeiXSearch.pm | 27 ++++++++------- lib/PublicInbox/NetNNTPSocks.pm | 12 ++++--- lib/PublicInbox/NetReader.pm | 53 +++++++++++++++++++++--------- lib/PublicInbox/Spawn.pm | 6 ++-- lib/PublicInbox/TestCommon.pm | 23 ++++++++++++- lib/PublicInbox/Watch.pm | 2 +- lib/PublicInbox/Xapcmd.pm | 12 +++---- t/io.t | 8 +---- t/ipc.t | 7 ++++ t/lei-import.t | 27 +++++++++++++++ 17 files changed, 163 insertions(+), 99 deletions(-)