popen3 fails to read from spawned process stdout ------------------------------------------------
Key: JRUBY-3520 URL: http://jira.codehaus.org/browse/JRUBY-3520 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Environment: Linux OpenSuse 11.1 Java(TM) SE Runtime Environment (build 1.6.0_12-b04) JRuby 1.2.0, JRuby 1.2.0RC2 Reporter: Andrey Chaschev Code below hangs with JRuby, but it finishes with both Ruby 1.8. and Ruby 1.9. If I comment out line "puts stdout.gets" the script continues execution. #!/usr/bin/env ruby require 'open3' include Open3 Open3.popen3('cat') { |stdin, stdout, stderr| stdin.puts('hello!') puts stdout.gets } -- 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