From: Eric Wong Date: Wed, 10 Mar 2021 13:23:41 +0000 (+0000) Subject: doc: technical/data_structures: update for EOFpipe X-Git-Tag: v1.7.0~1028 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ed9ea6325f51165d8dd5a9c8361b4f58936a47d5;p=public-inbox.git doc: technical/data_structures: update for EOFpipe ParentPipe no longer exists and was replaced by the more flexible EOFpipe. --- 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.