From: Charles Oliver Nutter Date: 2009-02-05T19:37:40+09:00 Subject: [ruby-core:21853] Re: [Bug #738] Repeated calls to popen cause thread problems Michal Suchanek wrote: > Note that in JRuby the required approach is exactly the opposite to what is required in MRI. The IO has to be duplicated for JRuby and the threads have to be swapped. This lack of reliability and portability is quite disappointing. Required in what version of JRuby? I'm running your testt2 script on JRuby 1.2/trunk just. Note that for_fd and all the other fd-related methods are an illusion in JRuby; we simulate fd behavior by keeping a weak map of generated "fd numbers" to the open streams the represent. That probably explains any fd-related behavioral difference you see. - Charlie