hi
Well, that would seem to solve the problem, but would introduce a race. With 'close', another thread might open a file or socket and MHD's might then select/poll/accept on that unrelated socket.
I'm not sure if I understand the race problem correctly. is it if we call close on listening socket, and a thread is entering accept() on this socket the descriptor is invalid and accept would return EBADF?

cheers, Frank




Reply via email to