]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: technical/data_structures: update for EOFpipe
authorEric Wong <e@80x24.org>
Wed, 10 Mar 2021 13:23:41 +0000 (13:23 +0000)
committerEric Wong <e@80x24.org>
Thu, 11 Mar 2021 03:39:14 +0000 (23:39 -0400)
ParentPipe no longer exists and was replaced by the more
flexible EOFpipe.

Documentation/technical/data_structures.txt

index 8776a67b969500db69bd858ef9e7da214f7d0566..4dcf9ce609be486965076f0817b9981070aafa1a 100644 (file)
@@ -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.