IO.select does not work properly with timeout
---------------------------------------------
Key: JRUBY-891
URL: http://jira.codehaus.org/browse/JRUBY-891
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0
Environment: Linux
Reporter: Martin Krauskopf
There seems to be some problem with {{IO.select}}. We are using this call in
the classic debugger in debug-commons and I'm not sure whether problem with
classic debugger vs. JRuby interpreter are not caused by this call. I started
with simple cases. Try this:
$cat tester.rb:
{code}
data, _, _ = IO.select([$stdin], nil, nil, 20)
$stdout.printf "data: #{data[0].gets}\n"
{code}
with Ruby. Start the program {{ruby tester.rb}}, enter immediately some
charcter + Enter. Program immediately ends up.
Try the same with JRuby. Program always waits for 20s.
Leaving Major priority, not sure about consequences.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email