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
@ -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…
Reference in New Issue
Block a user