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 CB1301F4B4 for ; Thu, 14 Jan 2021 07:06:27 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/14] lei: another pile of changes Date: Wed, 13 Jan 2021 19:06:13 -1200 Message-Id: <20210114070627.18195-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: PATCH 2/14 took forever to figure out; turns out I was hunting an old bug in Perl :x (and led to PATCH 3/14, too) We could probably go farther on 5/14 and eliminate the need for @TO_CLOSE_ATFORK_CHILD completely, but my brain was fried from 2/14 :x. The "ts:" => "rt:" change is technically user-visible, but "ts:" was never publicly documented so I doubt it affects anybody. "rt:" (received time) may be documented in the future. Eric Wong (14): cmd_ipc: support + test EINTR + EAGAIN, no FDs lei: test SIGPIPE, stop xsearch workers on client abort daemon+watch: fix localization of %SIG for non-signalfd users lei: do not unlink socket path at exit lei: reduce live FD references in wq child lei: rely on localized $current_lei for warnings lei_dedupe+shared_kv: ensure round-tripping serialization lei q: reinstate smsg dedupe search: rename "ts:" prefix to "rt:" lei_overview: rename "references" to "refs" lei: q: lock stdout on overview output leixsearch: remove some commented out code lei: remove temporary var on open lei: pass FD to CWD via cmsg, use fchdir on server MANIFEST | 2 + lib/PublicInbox/CmdIPC4.pm | 6 +- lib/PublicInbox/Daemon.pm | 4 +- lib/PublicInbox/IMAPsearchqp.pm | 6 +- lib/PublicInbox/IPC.pm | 45 +++----- lib/PublicInbox/LEI.pm | 182 +++++++++++++++++--------------- lib/PublicInbox/LeiDedupe.pm | 29 ++--- lib/PublicInbox/LeiOverview.pm | 43 +++++++- lib/PublicInbox/LeiQuery.pm | 27 ++--- lib/PublicInbox/LeiXSearch.pm | 60 +++++++---- lib/PublicInbox/Lock.pm | 2 +- lib/PublicInbox/Search.pm | 2 +- lib/PublicInbox/SharedKV.pm | 12 ++- lib/PublicInbox/Spawn.pm | 13 ++- script/lei | 88 +++++++++------ script/public-inbox-watch | 2 +- t/cmd_ipc.t | 32 ++++++ t/imap_searchqp.t | 6 +- t/lei.t | 33 +----- t/lei_dedupe.t | 13 +++ t/lei_overview.t | 33 ++++++ xt/lei-sigpipe.t | 32 ++++++ 22 files changed, 417 insertions(+), 255 deletions(-) create mode 100644 t/lei_overview.t create mode 100644 xt/lei-sigpipe.t