]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
ipc: get rid of -ipc_ppid field in favor of fork_gen
authorEric Wong <e@80x24.org>
Tue, 19 Aug 2025 00:33:34 +0000 (00:33 +0000)
committerEric Wong <e@80x24.org>
Wed, 20 Aug 2025 19:10:14 +0000 (19:10 +0000)
commitc9be556d34bb1696226ed4f1a5ffe945888d09d2
tree342fd92f6b02fcc0bb7b962fcafaed2a2c81ab72
parent365ef27928e46b9745b684ad3869369336247ed1
ipc: get rid of -ipc_ppid field in favor of fork_gen

We own all the `fork' calls in our codebase, so rely on the
existing $PublicInbox::OnDestroy::fork_gen instead of using `$$'
to call getpid(2) everywhere.  getpid(2) is slower nowadays
since it's always a syscall on modern glibc whereas it was
cached (somewhat unsafely) in the past.
lib/PublicInbox/IPC.pm