lib/PublicInbox/IPC.pm | 8 -------- diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm index 27ea90de44634f690f5b744a21549272ba6b3498..0c5205c12c6561c1c8960f36c1044ddef410f9c3 100644 --- a/lib/PublicInbox/IPC.pm +++ b/lib/PublicInbox/IPC.pm @@ -136,12 +136,6 @@ # for base class, override in sub classes 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 @@ die "unexpected PID:$pid without IPC pipes" if $pid; 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); }