When POLLERR comes up after polling, how can I determine the specific error reason?
POLLERR
Call getsockopt() with the option SO_ERROR.
getsockopt()
SO_ERROR
Call
getsockopt()
with the optionSO_ERROR
.