]> Sergey Matveev's repositories - public-inbox.git/commit
watch: use EOFpipe to reduce dwaitpid wakeups
authorEric Wong <e@80x24.org>
Mon, 31 Aug 2020 04:41:38 +0000 (04:41 +0000)
committerEric Wong <e@80x24.org>
Tue, 1 Sep 2020 00:19:19 +0000 (00:19 +0000)
commit5fa34fad91d262f446465772dce9ac3dde9673bf
treea76bfdc866962b51e69bb24ba513f36b3f0efbda
parent8aec4e8ddea9d9002be2d6af0849d8c5eb84b2e7
watch: use EOFpipe to reduce dwaitpid wakeups

It's a bit inefficient to use a pipe, here.  However, using
dwaitpid() on a process that's not expected to exit soon is
also inefficient as it causes excessive wakeups as most of
our inbox-writing code expects synchronous waitpid().

This only affects -watch instances configured for NNTP and IMAP
clients.
MANIFEST
lib/PublicInbox/EOFpipe.pm [new file with mode: 0644]
lib/PublicInbox/Watch.pm