diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 02:52:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-24 05:26:26 +0000 |
commit | cee1b928497c002ba03c325cbc6de7022673e2cb (patch) | |
tree | 72f4ab4f0ba6c09d7540012bbaffdc62c19113be /lib/PublicInbox/Qspawn.pm | |
parent | bd61cb1b18c7f38588e0c3b166dd265b738242cc (diff) | |
download | public-inbox-cee1b928497c002ba03c325cbc6de7022673e2cb.tar.gz |
It wasn't immediately obvious to me after several months of not looking at this code.
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r-- | lib/PublicInbox/Qspawn.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm index 9aede103..943ee801 100644 --- a/lib/PublicInbox/Qspawn.pm +++ b/lib/PublicInbox/Qspawn.pm @@ -122,7 +122,7 @@ sub psgi_qx { eval { $qx_cb->($qx) }; $qx = undef; }; - my $rpipe; + my $rpipe; # comes from popen_rd my $async = $env->{'pi-httpd.async'}; my $cb = sub { my $r = sysread($rpipe, my $buf, 8192); @@ -137,7 +137,7 @@ sub psgi_qx { }; $limiter ||= $def_limiter ||= PublicInbox::Qspawn::Limiter->new(32); $self->start($limiter, sub { # may run later, much later... - ($rpipe) = @_; + ($rpipe) = @_; # popen_rd result if ($async) { # PublicInbox::HTTPD::Async->new($rpipe, $cb, $end) $async = $async->($rpipe, $cb, $end); |