Kgio.poll: ensure EINTR never gets raised
commita5357ad014d2eacc99dd7ee46040686cbf1d871c
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:51:16 +0000 (20 19:51 -0700)
tree9c12f874840edb6f34ac45fc5e97562c6b7c68dd
parent605765ded31c784727077dfca573092ba725f717
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