Issue #6441 has been updated by nagachika (Tomoyuki Chikanaga).


??????? IO.pipe ??????????????? IO 2???? GC.start ?????????? GC ????????????????????????????????????????

 $ ruby -ve 'GC.start;loop{IO.pipe.tap{|i|p i}.clear;GC.start}'"
 ruby 2.0.0dev (2012-08-08 trunk 36663) [x86_64-darwin10.8.0]
 [#<IO:fd 5>, #<IO:fd 6>]
 [#<IO:fd 7>, #<IO:fd 8>]
 [#<IO:fd 5>, #<IO:fd 6>]
 [#<IO:fd 7>, #<IO:fd 8>]
 [#<IO:fd 5>, #<IO:fd 6>]
 [#<IO:fd 7>, #<IO:fd 8>]
 ...(以??繰??????)
????? ulimit -n 9 ???????????????????????????????????????????????
??????????????????????
----------------------------------------
Bug #6441: IO.pipe on ENFILE
https://bugs.ruby-lang.org/issues/6441#change-29533

Author: naruse (Yui NARUSE)
Status: Assigned
Priority: Normal
Assignee: authorNari (Narihiro Nakamura)
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-05-16 trunk 35659) [x86_64-netbsd6.99.5]


???? Ruby ??? open(2) ??????errno=ENFILE ????????????????????
????????? fd ???使??????????????????????rb_gc() ????????IO ????????????? GC ???????
fd ???解?????????????試???????????????????????????諦????????????????????

????????????IO.pipe ??????????????失?????????????????????????????
??????????lazy sweep ????????????????? T_FILE ??????????? sweep ???????????????????????????
pipe ?????????????????????????????????????????


-- 
http://bugs.ruby-lang.org/