]> Sergey Matveev's repositories - public-inbox.git/commit
ipc: use shutdown(2), base atfork* callback
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:51:39 +0000 (13:51 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:00:39 +0000 (05:00 +0000)
commit5bbcd1686c10985168b98046d3edc6cf0818df8c
treec9336e7eb61cd5995efd7b3569543ac41ce07a48
parentcb2b5984109b2caad941e3a2c952219890079acc
ipc: use shutdown(2), base atfork* callback

shutdown(2) on a socket can be preferable if there's multiple
forked processes writing to a single worker and we really want
to shut things down ASAP.

It may also be good to provide an ipc_worker_exit method which
subclasses can override if needed for graceful shutdown.  But we
won't need equivalents to atexit(3) since we can rely on DESTROY
handlers given this is Perl5.
lib/PublicInbox/IPC.pm