Make sure to sleep for at least 1 second in select if no descriptors
are ready for IO.