This avoids a zombie if another step of the event loop
takes too long.
---
lib/PublicInbox/Import.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index 8a06a661..a070aa1e 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -24,6 +24,7 @@ sub default_branch () {
delete local $ENV{GIT_CONFIG};
my $r = popen_rd([qw(git config --global init.defaultBranch)]);
chomp(my $h = <$r> // '');
+ close $r;
$h eq '' ? 'refs/heads/master' : $h;
}
}
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/