]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiXSearch.pm
lei: give workers their own process group
[public-inbox.git] / lib / PublicInbox / LeiXSearch.pm
index ee9216feeb238591cd38774e0449605fac9fcbb9..668d0b6e5df3154f2e927a38d8786269f4f8e48f 100644 (file)
@@ -469,7 +469,7 @@ sub do_post_augment {
        $err = $@;
        if ($err) {
                if (my $lxs = delete $lei->{lxs}) {
-                       $lxs->wq_kill;
+                       $lxs->wq_kill('-TERM');
                        $lxs->wq_close(0, undef, $lei);
                }
                $lei->fail("$err");