poll: deal with pollset changes on EINTR
commitc821ebeb851807840f74c4cb4f1a10e691bf222a
authorEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 20:11:53 +0000 (5 13:11 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 20:11:53 +0000 (5 13:11 -0700)
tree858c155749ea65acfb99dd76d0376b85a9413841
parentf589a9ae18216e1220bea8f905f33051e88f1ae7
poll: deal with pollset changes on EINTR

This allows callers to modify the pollset, interrupt
the polling thread, and then poll with the modified
pollset.  This is also important for dealing with
closed IO objects that may have been invalidated
due to GC, too.
ext/kgio/poll.c
test/test_poll.rb