From 25088c21b46b5d97b29ecb1d25b0342f37133b58 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Oct 2021 04:32:55 +0000 Subject: lei: give workers their own process group This lets users Ctrl-Z from their terminal to pause an entire git-clone process hierarchy. --- lib/PublicInbox/LeiXSearch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiXSearch.pm') diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index ee9216fe..668d0b6e 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -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"); -- cgit v1.2.3-24-ge0c7