thread_spawn: trap EAGAIN on accept_nonblock
commit4dd4746437380f7971398dd4c6bb12cd5df112f3
authorEric Wong <normalperson@yhbt.net>
Fri, 9 Oct 2009 06:26:05 +0000 (8 23:26 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 9 Oct 2009 06:27:26 +0000 (8 23:27 -0700)
treed4bf983b09f295acf5db95d31425bd4fdee35c08
parente65542f87b376b5e5b3d5f34fd43e9a8b2dfaff2
thread_spawn: trap EAGAIN on accept_nonblock

EAGAIN is common on accept_nonblock with multiple processes
sharing the same listen descriptors.

oops :x
lib/rainbows/thread_spawn.rb