Kgio.poll: ensure EINTR never gets raised
commitf809a87f70f0937a87b5d3a83704847daceef4dd
authorEric Wong <normalperson@yhbt.net>
Sat, 21 May 2011 02:50:34 +0000 (20 19:50 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 21 May 2011 02:52:05 +0000 (20 19:52 -0700)
tree0c6d46a274b9de7b2676a13927ff033b4b3580fd
parentab732113e13f1690fd2c1a18d1c66beb7864d847
Kgio.poll: ensure EINTR never gets raised

Retry on a zero timeout if we get interrupted
even if the timeout expired.  This is also what
IO.select does in Ruby itself.
ext/kgio/poll.c
test/test_poll.rb