]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
No ext_urls
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index 57f0e0132f4316fa3a97f0b1dc56b99eaa8a3969..fce15a724b511d15c49a3a2c196eb4d9e68291d7 100644 (file)
@@ -604,9 +604,8 @@ sub recv_and_run {
        $self->SUPER::recv_and_run(@args);
 }
 
-sub _sto_atexit { # dwaitpid callback
-       my ($args, $pid) = @_;
-       my $self = $args->[0];
+sub _sto_atexit { # awaitpid cb
+       my ($pid) = @_;
        warn "lei/store PID:$pid died \$?=$?\n" if $?;
 }
 
@@ -625,8 +624,7 @@ sub write_prepare {
                                        lei => $lei,
                                        -err_wr => $w,
                                        to_close => [ $r ],
-                               });
-               $self->wq_wait_async(\&_sto_atexit); # outlives $lei
+                               }, \&_sto_atexit);
                require PublicInbox::LeiStoreErr;
                PublicInbox::LeiStoreErr->new($r, $lei);
        }