]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei inspect: add atfork hook
authorEric Wong <e@80x24.org>
Tue, 19 Oct 2021 09:33:44 +0000 (09:33 +0000)
committerEric Wong <e@80x24.org>
Tue, 19 Oct 2021 17:29:22 +0000 (17:29 +0000)
This is necessary for in case an inspect command is run
in a parallel with other commands.

lib/PublicInbox/LeiInspect.pm

index 05b6e21d298d66e5723dfe5e7faeb17e4317ffc4..38ef3ad96df271c895d14fab97e84aa1c5e3d93a 100644 (file)
@@ -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;