test_poll: avoid potentially thread-unsafe test
commit377028d998f32c9bf8926a275019445103328c3d
authorEric Wong <e@yhbt.net>
Tue, 3 Sep 2013 22:45:26 +0000 (3 22:45 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 3 Sep 2013 23:35:15 +0000 (3 23:35 +0000)
tree58a6a30aa71d65b7cb1cb14e6b770e0e01cd65ae
parent259347346169d4a2ab5b33719fe0985edc64bd3c
test_poll: avoid potentially thread-unsafe test

Modifying pollset in a different pollset is thread-unsafe,
so just do that inside the signal handler as that should
fire before restarting poll().
test/test_poll.rb