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-ASN: 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 86B9A1F670 for ; Thu, 14 Oct 2021 13:16:09 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/7] lei: more process handling fixes Date: Thu, 14 Oct 2021 13:16:02 +0000 Message-Id: <20211014131609.829-1-e@80x24.org> In-Reply-To: <20211014043255.19545-4-e@80x24.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "lei up --all" SIGTSTP/CONT/INT handling was totally broken and now fixed. And we put cat-file processes into their own pgrp, so it avoids scary errors when hitting Ctrl-C on -extindex, too. Automated testing of interactive stuff is tricky, so it's not being done, currently :< Eric Wong (7): lei: use send() perlop for signals git: async_err shows retried requests properly git: ->fail invokes current callback git: cat-file --batch are their own pgrp lei: TSTP affects all curl and related subprocesses lei up: actually rely on DESTROY for --all lei up --all: send signals to workers, receive errors MANIFEST | 1 + lib/PublicInbox/AutoReap.pm | 34 +++++++++++++++++++++++++++++++++ lib/PublicInbox/Git.pm | 36 +++++++++++++++++++---------------- lib/PublicInbox/LEI.pm | 14 +++++++------- lib/PublicInbox/LeiInput.pm | 7 ++++--- lib/PublicInbox/LeiMirror.pm | 8 +++----- lib/PublicInbox/LeiRemote.pm | 13 +++++-------- lib/PublicInbox/LeiToMail.pm | 2 +- lib/PublicInbox/LeiUp.pm | 22 ++++++++++++++++++--- lib/PublicInbox/LeiXSearch.pm | 20 +++++++++---------- lib/PublicInbox/TestCommon.pm | 36 +++-------------------------------- script/lei | 4 ++-- 12 files changed, 108 insertions(+), 89 deletions(-) create mode 100644 lib/PublicInbox/AutoReap.pm