Treat POLLHUP as equivalent to POLLERR

Testing reveals that FreeBSD sometimes returns POLLHUP for a failed
socket connection, rather than POLLERR.  The exact meaning of POLLHUP
seems to be a matter of contention.  Treating it as equivalent to
POLLERR works, and seems the most reasonable approach for now.