とみたです。

On Thu, 2 Jun 2005 13:42:27 +0900
Takahiro Kambe <taca / back-street.net> wrote:

> > FD_SETSIZE以上のサポートを広げるという意味では、poll にする意味が有る
> > かというのが興味の有るところなのですが、Windows は救えなさそうですね。

> NetBSD(2.0以降)のselect(2)のBUGSには、いろいろと書いてあります。
> 
>      Alternatively, it is possible to use the poll(2) interface.  poll(2) is
>      more efficient when the size of select()'s fd_set bit-arrays are very
>      large, and for fixed numbers of file descriptors one need not size and
>      dynamically allocate a memory object.

Solaris 8 の select(3C) には次のような記述があります。

     The poll(2) function is preferred  over  this  function.  It
     must  be  used  when  the number of file descriptors exceeds
     FD_SETSIZE.

私は Solaris で poll() の存在を初めて知ったので、select() はもう古くて 
poll() を使うべきなんだと思ってました。

poll() がある環境では select() ではなく poll() を使うようにするという
のがたぶん綺麗な解決方法なんだと思います。

でも、変更が大掛かりになりそうですね…。Ruby 1.8.3 ではどうしましょうか?

-- 
とみたまさひろ <tommy / tmtm.org>
3469 42CC 4D32 F53C AD98  65A5 8C37 FF09 69C1 6040