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 23B9A1F47A for ; Tue, 20 Aug 2024 10:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1724150122; bh=7KYeafcQI4Iane2eO3UfyiJvyH2OQ6mLLFRCEJiZDb0=; h=From:To:Subject:Date:From; b=ZQvDrbPJO6MkOM9rXnRV19pel1OyBCaJzWnXam90wvgJ49R41jOxM6/gdbaQ6ylXa fH80rcsSINCsN7Jz965GHfBsOwpguN2OLtc+NTkhUICO3QRYclx+2EpyNKzCI3Z29y mafzb11+cWyRv5ckkU1VclwXTcqAfTeLagWc3ft0= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/5] signal handling fixes Date: Tue, 20 Aug 2024 10:35:16 +0000 Message-ID: <20240820103522.3548609-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Some changes I started in May but got sidetracked on :x I finally got around to getting the *BSD + EVFILT_SIGNAL stuff working ideally today (and I even prefer it over signalfd semantics given our use of Mail::IMAPClient and Net::NNTP) Eric Wong (5): treewide: handle EINTR for non-(signalfd|kevent) lei: simplify forced signal check sigfd: call normal Perl %SIG handlers lei: allow Ctrl-C to interrupt IMAP+NNTP reads lei_xsearch: allow signals during long queries lib/PublicInbox/CodeSearchIdx.pm | 24 ++++++++++++---- lib/PublicInbox/DS.pm | 21 ++++++++------ lib/PublicInbox/IPC.pm | 16 +++++++++-- lib/PublicInbox/LEI.pm | 49 +++++++++++++++++++++----------- lib/PublicInbox/LeiXSearch.pm | 4 +++ lib/PublicInbox/NetReader.pm | 14 +++++++++ lib/PublicInbox/PktOp.pm | 17 ++++++----- lib/PublicInbox/SHA.pm | 22 +++++++++++--- lib/PublicInbox/Sigfd.pm | 43 +++++++++++++++++++--------- script/lei | 2 +- t/sigfd.t | 45 ++++++++++++++++++----------- 11 files changed, 182 insertions(+), 75 deletions(-)