mirror of
https://github.com/curl/curl.git
synced 2026-07-25 16:47:16 +03:00
runner.pm: rename variables to avoid an exception
This commit is contained in:
parent
3a83bb1158
commit
2b8d63421f
2 changed files with 6 additions and 7 deletions
1
.github/scripts/codespell-ignore.txt
vendored
1
.github/scripts/codespell-ignore.txt
vendored
|
|
@ -16,7 +16,6 @@ numer
|
|||
PASE
|
||||
perfec
|
||||
pres
|
||||
rin
|
||||
seh
|
||||
ser
|
||||
strat
|
||||
|
|
|
|||
|
|
@ -1368,13 +1368,13 @@ sub runnerar {
|
|||
# Called by controller
|
||||
sub runnerar_ready {
|
||||
my ($blocking) = @_;
|
||||
my $rin = "";
|
||||
my $r_in = "";
|
||||
my %idbyfileno;
|
||||
my $maxfileno=0;
|
||||
my @ready_runners = ();
|
||||
foreach my $p (keys(%controllerr)) {
|
||||
my $fd = fileno($controllerr{$p});
|
||||
vec($rin, $fd, 1) = 1;
|
||||
vec($r_in, $fd, 1) = 1;
|
||||
$idbyfileno{$fd} = $p; # save the runner ID for each pipe fd
|
||||
if($fd > $maxfileno) {
|
||||
$maxfileno = $fd;
|
||||
|
|
@ -1386,14 +1386,14 @@ sub runnerar_ready {
|
|||
# This may be interrupted and return EINTR, but this is ignored and the
|
||||
# caller will need to later call this function again.
|
||||
# TODO: this is relatively slow with hundreds of fds
|
||||
my $ein = $rin;
|
||||
if(select(my $rout=$rin, undef, my $eout=$ein, $blocking) >= 1) {
|
||||
my $e_in = $r_in;
|
||||
if(select(my $r_out=$r_in, undef, my $e_out=$e_in, $blocking) >= 1) {
|
||||
for my $fd (0..$maxfileno) {
|
||||
# Return an error condition first in case it's both
|
||||
if(vec($eout, $fd, 1)) {
|
||||
if(vec($e_out, $fd, 1)) {
|
||||
return (undef, $idbyfileno{$fd});
|
||||
}
|
||||
if(vec($rout, $fd, 1)) {
|
||||
if(vec($r_out, $fd, 1)) {
|
||||
push(@ready_runners, $idbyfileno{$fd});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue