]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiInspect.pm
lei inspect: add atfork hook
[public-inbox.git] / lib / PublicInbox / LeiInspect.pm
index 5ba96056bc65b14589cb49910af5fd54faab1f83..38ef3ad96df271c895d14fab97e84aa1c5e3d93a 100644 (file)
@@ -242,7 +242,7 @@ sub inspect_start ($$) {
        $lei->{wq1} = $self;
        $lei->wait_wq_events($op_c, $ops);
        $self->wq_do('inspect_argv');
-       $self->wq_close(1);
+       $self->wq_close;
 }
 
 sub ins_add { # InputPipe->consume callback
@@ -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;