Use Poll.fileno() since it's now available
Simplified code