Closing Socket in MultiThreaded Application Fails
Hello,
I have a multithreaded daemon where one thread is blocked at accept call.
I have a thread which starts stopping all the threads when Daempn recvs SIGTERM.
What I see is that the second thread thinks it has closed the socket, but
the first thread (blocked in a accept on that socket) does not wake up and
remains blocked.
Any ideas as to why close does not wake up the blocked thread?
I am using Red Hat Linux 9.0 and 8.0
Regards,
Lalit.
|