a simple selector that makes epoll more convenient
fixing gpio tests