OSX (Darwin) returns APR_POLLHUP|APR_POLLIN, so the test for equality fails. Instead, just check for the bit.