about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-29 20:17:17 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-29 20:17:47 +0000
commitaacd0f52d9f4ba6821ad34b30a123966958c7e0c (patch)
tree1659f85254c4931b49561eecc006ddc7c9e70168 /lib/PublicInbox/Import.pm
parent4463af42366a4ec6c338dba05b438bc335b317d0 (diff)
downloadpublic-inbox-aacd0f52d9f4ba6821ad34b30a123966958c7e0c.tar.gz
We'll be using it in more future tests and scripts.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index f00c260b..463b44e2 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -387,9 +387,9 @@ sub add {
         $self->{tip} = ":$commit";
 }
 
-sub run_die ($;$) {
-        my ($cmd, $env) = @_;
-        my $pid = spawn($cmd, $env, undef);
+sub run_die ($;$$) {
+        my ($cmd, $env, $rdr) = @_;
+        my $pid = spawn($cmd, $env, $rdr);
         defined $pid or die "spawning ".join(' ', @$cmd)." failed: $!";
         waitpid($pid, 0) == $pid or die join(' ', @$cmd) .' did not finish';
         $? == 0 or die join(' ', @$cmd) . " failed: $?\n";