Poll's return value was never getting checked.

Poll's return value was never being checked which results in some undefined behavior due to poll_fd not being set. The most popular error seemed to be EINTR. The fix is to simply check the return value and return 0 on failure.