On 23/08/08 at 11:46 +0200, Michal Suchanek wrote:
> Package: ruby
> Version: 4.2
> Severity: normal
> 
> 
> The attached code fails after about 100 iterations of invoking popen.
> 
> However, on this particular interpreter version inserting a comment into
> the code makes it not fail.
> 
> On stable the code fails regardless of comment.

It's not a ruby-defaults problem, but a ruby1.8/ruby1.9 one (both are
affected).

It seems that there's a probably when several IO objects point to the
same fd.
Changing:
 t = Thread.new(  (IO::new analyzer.fileno),res){|fd,ary|
To:
 t = Thread.new(analyzer, res){|fd,ary|
makes the problem disappear.

Could someone raise this issue on ruby-dev?
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to