Correctness
I saw the possibility of attempting to poll on closed file descriptors. Therefore I re-worked the loop to use RAII and avoid this. Therefore the loop will never poll on a closed file descriptor now.
I saw the possibility of attempting to poll on closed file descriptors. Therefore I re-worked the loop to use RAII and avoid this. Therefore the loop will never poll on a closed file descriptor now.