[regression] IO.popen of 'yes' process silently terminates JRuby execution on
#close (on Windows)
-------------------------------------------------------------------------------------------------
Key: JRUBY-4701
URL: http://jira.codehaus.org/browse/JRUBY-4701
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Windows
Affects Versions: JRuby 1.4
Environment: Windows. Other OSes seem to be OK.
Reporter: Vladimir Sizikov
The fillowing simple script on *Windows* just exits, and doesn't print anything:
{code}
io = IO.popen('yes', 'r')
io.gets
io.close
p "after"
{code}
This is a regression caused by bugfix for JRUBY-2804:
{noformat}
commit 4cbffc0dbdb8e326a0ece1c0c70af274cd2c9b5e
Author: Charles Oliver Nutter <[email protected]>
Date: Sun Feb 8 07:18:53 2009 +0000
When a process IO closes, make sure we destroy the process (and our process
wrapper destroys the real process too).
JRUBY-2804
{noformat}
This leads to silent termination of recent rubyspec runs on Windows. I tagged
the problematic spec with critical tag for now.
--
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