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,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF 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 652EB1F454 for ; Sat, 7 Oct 2023 21:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696713850; bh=zbp8tO+9OKoL5cOtqt3vvhRkN8suTkN/nS5pLOKt5X0=; h=From:To:Subject:Date:From; b=OjHk+CeBwhsny2tlZHcIFeoo+ycS5HCkgSgkpTWFyD2Jkx1UnG3tNssv154fpcyKt VCOIF6Xuo4jRvhICoMaoGbf1kdbIl+dco2aWwAXl3FqTU8sIcQHb+WpuvWK+awzMVd 63JIOPOYRB7lrPfTk2DOfcXgRkg7kLWURWSmpPc8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/9] more process-related cleanups Date: Sat, 7 Oct 2023 21:24:01 +0000 Message-ID: <20231007212410.297785-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 2/9 fixes an annoying syslog error I spotted running tests; 3/9 is long overdue, and there's a few more overdue things coming up... Eric Wong (9): xt/httpd-async-stream: avoid waitpid call lei: do not issue sto->done if socket is inactive lei: always use async `done' requests to store ipc: require fork+SOCK_SEQPACKET for wq_* functions ipc: use autodie for most syscalls import: use autodie, rely on PerlIO for retries rename ProcessPipe to ProcessIO process_io: pass args to awaitpid as list cindex: start using autodie MANIFEST | 3 +- lib/PublicInbox/CodeSearchIdx.pm | 70 ++++++++-------- lib/PublicInbox/Gcf2Client.pm | 4 +- lib/PublicInbox/Git.pm | 4 +- lib/PublicInbox/HTTPD/Async.pm | 2 +- lib/PublicInbox/IPC.pm | 82 ++++++++----------- lib/PublicInbox/Import.pm | 45 ++++------ lib/PublicInbox/LEI.pm | 11 ++- lib/PublicInbox/LeiInput.pm | 2 +- lib/PublicInbox/LeiRediff.pm | 2 +- lib/PublicInbox/LeiRemote.pm | 2 +- lib/PublicInbox/LeiStore.pm | 17 ++-- lib/PublicInbox/LeiToMail.pm | 6 +- lib/PublicInbox/LeiXSearch.pm | 6 +- .../{ProcessPipe.pm => ProcessIO.pm} | 12 ++- lib/PublicInbox/Qspawn.pm | 8 +- lib/PublicInbox/Spamcheck/Spamc.pm | 2 +- lib/PublicInbox/Spawn.pm | 12 +-- t/ipc.t | 19 ++--- t/lei-store-fail.t | 51 ++++++++++++ t/spawn.t | 12 +-- xt/httpd-async-stream.t | 6 +- 22 files changed, 196 insertions(+), 182 deletions(-) rename lib/PublicInbox/{ProcessPipe.pm => ProcessIO.pm} (83%) create mode 100644 t/lei-store-fail.t