[windows] Writing to a pipe with closed source raises wrong exception
---------------------------------------------------------------------
Key: JRUBY-4433
URL: http://jira.codehaus.org/browse/JRUBY-4433
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Intro, Windows
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Attachments: test_write.rb
ruby -e "a,b=IO.pipe;a.close;b.puts('abc');b.close"
On non-Windows, MRI and JRuby reliably raise Errno::EPIPE, which is a proper
behavior.
MRI 1.8.6 raises Errno::EINVAL (which seems to be wrong). On MRI 1.9+, MRI
properly raises Errno::EPIPE.
JRuby on Windows always raises IOError. It seems to me that the proper behavior
for JRuby on Windows should be raising Errno::EPIPE, to be in sync with other
platforms.
See also: http://redmine.ruby-lang.org/issues/show/2559
I'm also attaching the test case.
--
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