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 A9A001F9FE for ; Wed, 10 Mar 2021 13:23:45 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/5] doc: technical/data_structures: update for EOFpipe Date: Wed, 10 Mar 2021 13:23:41 +0000 Message-Id: <20210310132345.28283-2-e@80x24.org> In-Reply-To: <20210310132345.28283-1-e@80x24.org> References: <20210310132345.28283-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: ParentPipe no longer exists and was replaced by the more flexible EOFpipe. --- Documentation/technical/data_structures.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/technical/data_structures.txt b/Documentation/technical/data_structures.txt index 8776a67b..4dcf9ce6 100644 --- a/Documentation/technical/data_structures.txt +++ b/Documentation/technical/data_structures.txt @@ -222,10 +222,8 @@ daemon classes given PublicInbox::Config which may be instantiated more than once in the future. -* PublicInbox::ParentPipe +* PublicInbox::EOFpipe - Per-worker process class to detect shutdown of master process. - This is not used if using -W0 to disable worker processes - in public-inbox-httpd or public-inbox-nntpd. - - This is a per-worker singleton. + Used throughout to trigger a callback when a pipe(7) is closed. + This is frequently used to portably detect process exit without + relying on a catch-all waitpid(-1, ...) call.