about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Qspawn.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm
index 31a1583d..3425e5e4 100644
--- a/lib/PublicInbox/Qspawn.pm
+++ b/lib/PublicInbox/Qspawn.pm
@@ -164,7 +164,7 @@ reread:
                 $async->async_pass($self->{psgi_env}->{'psgix.io'},
                                         $qx_fh, \$buf);
         } elsif (defined $r) {
-                $r ? $qx_fh->write($buf) : event_step($self, undef);
+                $r ? (print $qx_fh $buf) : event_step($self, undef);
         } else {
                 return if $! == EAGAIN; # try again when notified
                 goto reread if $! == EINTR;