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-ASN: 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 59CC31F463 for ; Wed, 27 Nov 2019 01:33:34 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] fix kqueue support and missed signal wakeups Date: Wed, 27 Nov 2019 01:33:31 +0000 Message-Id: <20191127013333.94381-1-e@80x24.org> In-Reply-To: <20191125085943.GA18781@dcvr> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: signalfd and EVFILT_SIGNAL are pretty nice, actually. I'm actually glad Perl5 allows users to call sigprocmask and use these new APIs effectively, compared to other runtimes which purport to know better :P Note: the likelyhood of coalesced signals increases in high load situations, but I don't think it matters in practice; since we already account for coalescing in handling SIGCHLD. Eric Wong (2): dskqxs: fix missing EV_DISPATCH define httpd|nntpd: avoid missed signal wakeups MANIFEST | 3 + lib/PublicInbox/DS.pm | 6 +- lib/PublicInbox/DSKQXS.pm | 105 +++++++++++++++++---- lib/PublicInbox/Daemon.pm | 183 ++++++++++++++++++------------------- lib/PublicInbox/Sigfd.pm | 63 +++++++++++++ lib/PublicInbox/Syscall.pm | 42 ++++++++- t/ds-kqxs.t | 42 +++++++++ t/ds-poll.t | 16 +--- t/sigfd.t | 65 +++++++++++++ 9 files changed, 397 insertions(+), 128 deletions(-) create mode 100644 lib/PublicInbox/Sigfd.pm create mode 100644 t/ds-kqxs.t create mode 100644 t/sigfd.t