なかだです。 At Thu, 23 Jun 2005 03:29:42 +0900, とみたまさひろ wrote in [ruby-dev:26365]: > 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() を使うようにするという > のがたぶん綺麗な解決方法なんだと思います。 これはシステムによってまちまちで、たとえばLinuxではselect()にも FD_SETSIZEの制限がなくて、poll()もselect()で実装していたはずで す。 -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦