X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiXSearch.pm;h=e207f0fc0a61b7b47049bc3df4a4a048f9031554;hb=8c5675254f496c6b66ba9db609873f1f94270201;hp=b3cace74916cd442ffb19ea5a3b1d89feb78b760;hpb=a3b3e0d4c48a85cb411ac5059a1d85906d0c97de;p=public-inbox.git diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index b3cace74..e207f0fc 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -198,6 +198,7 @@ sub query_remote_mboxrd { my ($self, $lei, $uris) = @_; local $0 = "$0 query_remote_mboxrd"; $lei->atfork_child_wq($self); + local $SIG{TERM} = sub { exit(0) }; # for DESTROY (File::Temp, $reap) my ($opt, $env) = @$lei{qw(opt env)}; my @qform = (q => $lei->{mset_opt}->{qstr}, x => 'm'); push(@qform, t => 1) if $opt->{thread};