LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-21-2004, 12:44 AM   #1
laalitseth
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Unhappy 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multithreaded socket system JanusPaul Programming 2 08-12-2005 05:58 PM
Creating a Multithreaded Application kamransoomro84 Programming 3 06-03-2004 08:55 AM
closing an application from a c program roush Programming 4 04-30-2004 04:14 AM
Mozilla fails to load after closing ephem Red Hat 2 09-03-2003 02:34 AM
When closing my graphics program & entering the application again the screen is blank armesk Programming 7 08-29-2003 01:16 PM


All times are GMT -5. The time now is 12:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration