diff options
author | Eric Wong <e@80x24.org> | 2019-01-11 03:50:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-11 03:55:30 +0000 |
commit | 9739f3aa67425958f306f8418c0c6fbf186481c3 (patch) | |
tree | 4b01c012836bfbf47f70ced0fbbf1abd55a4e658 /lib/PublicInbox | |
parent | 34f4c437bff62a3297b2fcebf31fcdb24638dec9 (diff) | |
download | public-inbox-9739f3aa67425958f306f8418c0c6fbf186481c3.tar.gz |
Zombies are bad.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/Import.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index fd4255cf..7e596abc 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -495,7 +495,7 @@ sub purge_oids { my $old = $self->{'ref'}; my $git = $self->{git}; my @export = (qw(fast-export --no-data --use-done-feature), $old); - my ($rd, $pid) = $git->popen(@export); + my $rd = $git->popen(@export); my ($r, $w) = $self->gfi_start; my @buf; my $npurge = 0; @@ -550,6 +550,7 @@ sub purge_oids { push @buf, $_; } } + close $rd or die "close fast-export failed: $?"; if (@buf) { $w->print(@buf) or wfail; } |