Use an appropriate filter when waiting connection with kqueue.