core: change select timeout to 1 for WIndows [GH-5309]
This commit is contained in:
parent
ab27413954
commit
80ce9ab1f3
|
@ -25,7 +25,7 @@ module Vagrant
|
||||||
# We have to do this since `readpartial` will actually block
|
# We have to do this since `readpartial` will actually block
|
||||||
# until data is available, which can cause blocking forever
|
# until data is available, which can cause blocking forever
|
||||||
# in some cases.
|
# in some cases.
|
||||||
results = ::IO.select([io], nil, nil, 0.1)
|
results = ::IO.select([io], nil, nil, 1.0)
|
||||||
break if !results || results[0].empty?
|
break if !results || results[0].empty?
|
||||||
|
|
||||||
# Read!
|
# Read!
|
||||||
|
|
Loading…
Reference in New Issue