change the whole thing to be more edge triggered no matter wich poll method is used. In fact this works now with edge triggered epoll