Xapian on Linux <3.15 has trouble with coprocesses since it used
fork() for locking and would hold onto pipes used for git
unnecessarily.
my ($oid, $type, $len) = $self->{-inbox}->git->check($expect_oid);
$oid eq $expect_oid or die "BUG: $expect_oid not found after replace";
my ($oid, $type, $len) = $self->{-inbox}->git->check($expect_oid);
$oid eq $expect_oid or die "BUG: $expect_oid not found after replace";
+ # don't leak FDs to Xapian:
+ $self->{-inbox}->git->cleanup;
+
# reindex modified messages:
for my $smsg (@$need_reindex) {
my $num = $smsg->{num};
# reindex modified messages:
for my $smsg (@$need_reindex) {
my $num = $smsg->{num};