diff options
author | Eric Wong <e@80x24.org> | 2016-12-25 06:39:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-12-25 10:27:01 +0000 |
commit | 1aff1f07b5f6acc661aefc0d6fc1d744e6f8025d (patch) | |
tree | 983e40398640cb61fe0035ba74f5e233fab27aed /lib | |
parent | 9511829a9c836a2887d9a569275cc599a463d922 (diff) | |
download | public-inbox-1aff1f07b5f6acc661aefc0d6fc1d744e6f8025d.tar.gz |
Use a more meaningful variable name for the Qspawn object, since this module is the reference for its use.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/GitHTTPBackend.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index a069fd94..86b8ebcc 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -206,11 +206,11 @@ sub serve_smart { } $env{GIT_HTTP_EXPORT_ALL} = '1'; $env{PATH_TRANSLATED} = "$git_dir/$path"; - my %rdr = ( 0 => fileno($in) ); - my $x = PublicInbox::Qspawn->new([qw(git http-backend)], \%env, \%rdr); + my $rdr = { 0 => fileno($in) }; + my $qsp = PublicInbox::Qspawn->new([qw(git http-backend)], \%env, $rdr); my ($fh, $rpipe); my $end = sub { - if (my $err = $x->finish) { + if (my $err = $qsp->finish) { err($env, "git http-backend ($git_dir): $err"); } $fh->close if $fh; # async-only @@ -258,7 +258,7 @@ sub serve_smart { # holding the input here is a waste of FDs and memory $env->{'psgi.input'} = undef; - $x->start($limiter, sub { # may run later, much later... + $qsp->start($limiter, sub { # may run later, much later... ($rpipe) = @_; $in = undef; if ($async) { |