fix poll to handle negative file descriptors