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 DE7B71F55F for ; Mon, 11 Sep 2023 09:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1694425296; bh=+XoXa3eoaE7IxRHWy5U6uI4SdGRGnWz/2TmR+56bl2k=; h=From:To:Subject:Date:From; b=GF1Ox+Q8H9gHRYw1LHClY+R+XwZI+XzCKVSVjMswakQCQN1DBfp6DPKavvnD3gl6D ohmINP1QOkvZQs/QHDEv3sHScub+fQfJvR5INfhAtF+WzQTNih/aTA+xY1AfL52EU+ PxAj8ydnT6Y0WjuB0FqYPLSkV3RrbXupsodkQRK4= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/7] system-related updates and cleanups Date: Mon, 11 Sep 2023 09:41:25 +0000 Message-ID: <20230911094132.75792-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 2/7 is a very welcome cleanup... I'm liking the `awaitpid' API quite a bit :> I noticed the bug fixed by 1/7 while working on 2/7. 3/7 is a welcome cleanup, though 4/7 is debatable... IMHO epoll is total overkill for processes which will never see many FDs and can't benefit from EPOLLEXCLUSIVE. 5/7 helps me sleep better at night since I'm uncomfortable with using undocumented APIs And a couple of further signal blocking cleanups. Eric Wong (7): tests: map CLOFORK->FD_CLOEXEC temporarily for `tail -f' daemon: depend on DS event_loop in master process, too ds: use object-oriented API for epoll favor poll(2) for most daemons dspoll: switch to the documented IO::Poll API ds: use constants for @UNBLOCKABLE list spawn: do not block ABRT/BUS/ILL/SEGV signals MANIFEST | 1 + lib/PublicInbox/DS.pm | 60 ++++---- lib/PublicInbox/DSKQXS.pm | 58 ++++---- lib/PublicInbox/DSPoll.pm | 64 ++++----- lib/PublicInbox/Daemon.pm | 254 ++++++++++++++++------------------ lib/PublicInbox/Epoll.pm | 23 +++ lib/PublicInbox/Sigfd.pm | 12 +- lib/PublicInbox/Spawn.pm | 11 +- lib/PublicInbox/SpawnPP.pm | 4 + lib/PublicInbox/Syscall.pm | 12 +- lib/PublicInbox/TestCommon.pm | 43 +++++- t/ds-kqxs.t | 4 +- t/ds-poll.t | 29 ++-- t/epoll.t | 23 ++- t/httpd-unix.t | 21 ++- t/lei-daemon.t | 1 + t/sigfd.t | 4 +- t/watch_maildir.t | 1 + t/xap_helper.t | 7 +- 19 files changed, 323 insertions(+), 309 deletions(-) create mode 100644 lib/PublicInbox/Epoll.pm