Ruby method that calls the POSIX select syscall to wait for sockets to become ready for reading or writing. Not ideal for thousands of sockets because every call must copy all socket descriptors into kernel space.