Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.1
-
Fix Version/s: JRuby 1.7.0.RC2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
I have several threads that are doing blocking reads on pipes created with IO.pipe. Kernel#exit is called, and the threads begin to die. I've managed to swallow most of the exceptions being generated except for this one:
RuntimeError: Error with selector: java.nio.channels.ClosedChannelException
org/jruby/RubyIO.java:2723:in `read'
It looks as though this needs to be wrapped in something like Errno::EBADF or IOError.
commit 92b38c48cd9960e0692bcf36e2b790c89d0b324c Author: Charles Oliver Nutter <headius@headius.com> Date: Fri Oct 5 22:23:58 2012 -0500 Fix JRUBY-5732 Error with selector: java.nio.channels.ClosedChannelException :100644 100644 2d3cea7... 0492ffb... M src/org/jruby/Ruby.java :100644 100644 856833b... 8ffef63... M src/org/jruby/RubyThread.java