about summary refs log tree commit homepage
path: root/lib/PublicInbox/IPC.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-10 12:15:05 +0000
committerEric Wong <e@80x24.org>2021-01-12 03:51:42 +0000
commite82347d7990694c958a3d66ff8ca25b0b26560a3 (patch)
treee9d01a73cf7a2555f4b39a9b2d1c37eb3f93ee26 /lib/PublicInbox/IPC.pm
parent862d18680dccc30ef6cc8044da925ec5085911b2 (diff)
downloadpublic-inbox-e82347d7990694c958a3d66ff8ca25b0b26560a3.tar.gz
We can just EOF the pipe, and instead rely on per-class
error handling to deal with uncommitted transactions and
what not.
Diffstat (limited to 'lib/PublicInbox/IPC.pm')
-rw-r--r--lib/PublicInbox/IPC.pm8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm
index 27ea90de..0c5205c1 100644
--- a/lib/PublicInbox/IPC.pm
+++ b/lib/PublicInbox/IPC.pm
@@ -136,12 +136,6 @@ sub ipc_worker_reap { # dwaitpid callback
 sub ipc_atfork_parent {}
 sub ipc_atfork_child {}
 
-# should only be called inside the worker process
-sub ipc_worker_exit {
-        my (undef, $code) = @_;
-        exit($code);
-}
-
 # idempotent, can be called regardless of whether worker is active or not
 sub ipc_worker_stop {
         my ($self) = @_;
@@ -152,10 +146,8 @@ sub ipc_worker_stop {
                 return; # idempotent
         }
         die 'no PID with IPC pipes' unless $pid;
-        _send_rec($w_req, [ undef, 'ipc_worker_exit', 0 ]);
         $w_req = $r_res = undef;
 
-        # allow any sibling to send ipc_worker_exit, but siblings can't wait
         return if $$ != $ppid;
         dwaitpid($pid, \&ipc_worker_reap, $self);
 }