You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in the following error on my Linux box, and Travis CI:
ruby -Xerrno.backtrace=true test.rb 1024
Starting...IO::EAGAINWaitReadable: Resource temporarily unavailable -
read_nonblock at org/jruby/RubyIO.java:2856
(root) at test.rb:8
popen3 at org/jruby/RubyIO.java:4433
popen3 at /home/mhoran/.rbenv/versions/jruby-1.7.10/lib/ruby/1.9/open3.rb:74
(root) at test.rb:5
If I first pipe the output of stderr to the write end of an IO.pipe, the program works as expected:
In actual usage, I'm just using IO.select to determine if there's content ready to be read, along with a timeout to ensure that the application quits if data is not available. However, there seems to be a fundamental issue with output forwarding given IO.pipe works as expected.
The text was updated successfully, but these errors were encountered:
Was just hit by this bug as well. Is there any workaround? All I tried so far failed, because other methods like capture3 etc. are also buggy. Also IO#read_nonblock always retuns Errno::EWOULDBLOCK, even if there's data to read and even if the socket is already closed.
IO.select
does not wait for data to be readable, nor does it respect the timeout when reading from an output stream provided by `Open3.popen3'.This results in the following error on my Linux box, and Travis CI:
If I first pipe the output of
stderr
to the write end of anIO.pipe
, the program works as expected:In actual usage, I'm just using
IO.select
to determine if there's content ready to be read, along with a timeout to ensure that the application quits if data is not available. However, there seems to be a fundamental issue with output forwarding givenIO.pipe
works as expected.The text was updated successfully, but these errors were encountered: