]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Qspawn.pm
avoid relying on IO::Handle/IO::File autoload
[public-inbox.git] / lib / PublicInbox / Qspawn.pm
index 31a1583dfebcef7d6f9a25749493f63fce563f9a..3425e5e4558ba3911d0979ab01ea534c47434f86 100644 (file)
@@ -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;