Mike Kaplinskiy mike.kaplinskiy@gmail.com writes:
Remove the fd from the poll list so we don't get POLLHUP/POLLERR messages when we ask for no events
This is wrong, even when selecting for no events you want to receive POLLHUP/POLLERR. If you really don't want any events you have to use -1 to remove the fd from the loop. But in general ignoring POLLHUP/POLLERR is a bug.