From 1f887bd51d92b0d4fea4d8e3c36f4328c6b0ae76 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 19 Oct 2021 09:33:44 +0000 Subject: lei inspect: add atfork hook This is necessary for in case an inspect command is run in a parallel with other commands. --- lib/PublicInbox/LeiInspect.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/LeiInspect.pm b/lib/PublicInbox/LeiInspect.pm index 05b6e21d..38ef3ad9 100644 --- a/lib/PublicInbox/LeiInspect.pm +++ b/lib/PublicInbox/LeiInspect.pm @@ -289,4 +289,10 @@ sub _complete_inspect { # TODO: message-ids?, blobs? could get expensive... } +sub input_only_atfork_child { + my ($self) = @_; + $self->{lei}->_lei_atfork_child; + $self->SUPER::ipc_atfork_child; +} + 1; -- cgit v1.2.3-24-ge0c7