Make fd error handling in epoll port use read and write errors.