about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index b0b1f4d9..532cbee6 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -194,7 +194,7 @@ sub run_script ($;$$) {
                 next unless ref($redir);
                 open my $fh, '+>', undef or die "open: $!";
                 $fhref->[$fd] = $fh;
-                $spawn_opt->{$fd} = fileno($fh);
+                $spawn_opt->{$fd} = $fh;
                 next if $fd > 0;
                 $fh->autoflush(1);
                 print $fh $$redir or die "print: $!";