mirror of
https://github.com/curl/curl.git
synced 2026-06-22 21:05:38 +03:00
runtests: use the correct fd after select
The code was using the wrong fd when determining which runner was ready with a response. Ref: #10818 Closes #11160
This commit is contained in:
parent
9f87dee556
commit
c95ca8dfeb
1 changed files with 2 additions and 2 deletions
|
|
@ -1226,7 +1226,7 @@ sub runnerar {
|
|||
}
|
||||
|
||||
###################################################################
|
||||
# Returns runnder ID if a response from an async call is ready
|
||||
# Returns runner ID if a response from an async call is ready
|
||||
# argument is 0 for nonblocking, undef for blocking, anything else for timeout
|
||||
# Called by controller
|
||||
sub runnerar_ready {
|
||||
|
|
@ -1248,7 +1248,7 @@ sub runnerar_ready {
|
|||
# TODO: handle errors
|
||||
if(select(my $rout=$rin, undef, undef, $blocking)) {
|
||||
for my $fd (0..$maxfileno) {
|
||||
if(vec($rin, $fd, 1)) {
|
||||
if(vec($rout, $fd, 1)) {
|
||||
return $idbyfileno{$fd};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue