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 7171F1F9FC for ; Wed, 24 Mar 2021 09:23:35 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/9] lei: various corner case leak fixes Date: Wed, 24 Mar 2021 14:23:26 +0500 Message-Id: <20210324092335.12345-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Making the test suite use a single lei-daemon for all tests has uncovered a number of bugs that wouldn't get uncovered during normal usage. These fixes could be useful if lei-daemon is deployed a multi-tenant server with both shared and "private" storage support running under a single Unix user. Eric Wong (9): ds: improve DS->Reset fork-safety mbox_lock: dotlock: chdir for relative lock paths lei: drop circular reference in lei_store process lei: update {3} after -C chdirs lei: clean up pkt_op consumer on exception, too lei_store: give process a better name v2writable: cleanup SQLite handles on --xapian-only lei_mirror: fix circular reference lei-daemon: do not leak FDs on bogus requests lib/PublicInbox/DS.pm | 76 +++++++++++++++++++++-------------- lib/PublicInbox/LEI.pm | 45 ++++++++++++++++----- lib/PublicInbox/LeiMirror.pm | 2 +- lib/PublicInbox/LeiStore.pm | 6 ++- lib/PublicInbox/LeiXSearch.pm | 9 +---- lib/PublicInbox/MboxLock.pm | 14 +++++++ lib/PublicInbox/V2Writable.pm | 1 + t/lei-daemon.t | 29 +++++++++++++ t/mbox_lock.t | 12 ++++++ t/v2reindex.t | 10 ++++- 10 files changed, 153 insertions(+), 51 deletions(-)