>>>>> "T" == Toby DiPasquale <toby / cbcg.net> writes:

T> So, is there a way in the Ruby source to map a fd to its associated IO 
T> object?

 Perhaps you can try with ObjectSpace::each_object, something like this

moulon% ruby -e 'ObjectSpace::each_object(IO) {|io| puts "#{io} #{io.to_i}"}'
#<IO:0xb7d69fec> 2
#<IO:0xb7d6a000> 1
#<IO:0xb7d6a014> 0
moulon% 




Guy Decoux