|Subject:||Re: [libmicrohttpd] shutdown of listen socket does not work on solaris 10|
|Date:||Mon, 19 Sep 2011 10:29:24 +0200|
|User-agent:||Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:18.104.22.168) Gecko/20110804 Lightning/1.0b2 Thunderbird/3.1.12|
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?
|[Prev in Thread]||Current Thread||[Next in Thread]|