Switched from using select to poll within mcs_io_read to prevent segfaults when
more than 1024 are used.