mogilefs/socket/pure_ruby: use IO#wait_*able
commit6cba7e931880e98b8bea13da907b588b0ebfc541
authorEric Wong <normalperson@yhbt.net>
Wed, 24 Jun 2015 01:24:39 +0000 (24 01:24 +0000)
committerEric Wong <e@80x24.org>
Wed, 24 Jun 2015 01:57:45 +0000 (24 01:57 +0000)
tree5bd7676a8c0b1d8f03923faf99aeda1157524141
parent20dc3c8ac405b784ff82c4ef65c2e14e6032aef6
mogilefs/socket/pure_ruby: use IO#wait_*able

IO#wait_*able methods may use the more efficient ppoll syscall under
Linux to avoid performance penalties with high-numbered FDs.  Use
them if available.  IO#wait_readable has been around since the 1.8
days at least, and IO#wait_writable was added in Ruby 2.0.0
lib/mogilefs/socket/pure_ruby.rb