Is there a way to find out the errno when epoll_wait returns EPOLLERR for a particular fd?
errno
epoll_wait
EPOLLERR
Is there any further information about
Use getsockopt and SO_ERROR to get the pending error on the socket
int error = 0; socklen_t errlen = sizeof(error); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&error, &errlen) == 0) { printf("error = %s\n", strerror(error)); }