HPCC-9415 Use epoll_wait instead of select in data loop

Updated code based on reviews.