Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Cancelling/slaying/killing reply blocked threads.: (3 Items)
   
Cancelling/slaying/killing reply blocked threads.  
Hi there,

I have a setup where I have an application that sends a request to a Resource Manager.  This ResMgr doesn't reply to the
 message until something has occurred that requires a reply.  This concept is talked about in some of the IPC related 
pages on this site.  As long as everything is running this concept works really well for my situation, however in the 
process of debugging and general implementation work I like to Ctrl-C and/or slay my application that is sending the 
message.  When I attempt this pidin shows me that the thread i have doing the MsgSend is still blocked on REPLY and i'm 
unable to fully kill the application.  Today I need to slay both the sending application, and the ResMgr that does the 
actual replying.

So my question is, how can I have all my application's threads terminated when I use "slay" or Ctrl-C?

Thanks,

Josh
RE: Cancelling/slaying/killing reply blocked threads.  
Resource Manager has to support it.
If you control resmrg code you need to add io_unblock handler.
In this function just return errno like EINTR

RE: Cancelling/slaying/killing reply blocked threads.  
Thanks!!! 

-----Original Message-----
From: Elena Laskavaia [mailto:elaskavaia@qnx.com] 
Sent: Wednesday, February 27, 2008 2:24 PM
To: general-community
Subject: RE: Cancelling/slaying/killing reply blocked threads.


Resource Manager has to support it.
If you control resmrg code you need to add io_unblock handler.
In this function just return errno like EINTR



_______________________________________________
General
http://community.qnx.com/sf/go/post5341