Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to kill REPLY blocked thread?: (6 Items)
   
How to kill REPLY blocked thread?  
How from command line can I kill a thread which stays in REPLY blocked state? Slay kills everything main program has 
started except this one. It survives kill command, it survives killing a shell in which the program was started. I 
cannot kill the non-replying process because it is a shared resource. Only after unblocking it dies which is too late 
for me.

RobertL
Re: How to kill REPLY blocked thread?  
When you kill a process that has a REPLY blocked thread, then an unblock pulse is sent to server, which
can then decide what to do before replying to the client to unblock it.

Look for "Handling client unblocking due to signals or timeouts" in the "Writing a Resource Manager" section of the
Programmers Guide.

Colin

bob lipka wrote:
> How from command line can I kill a thread which stays in REPLY blocked state? Slay kills everything main program has 
started except this one. It survives kill command, it survives killing a shell in which the program was started. I 
cannot kill the non-replying process because it is a shared resource. Only after unblocking it dies which is too late 
for me.
> 
> RobertL
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post12171
> 

-- 
cburgess@qnx.com
Re: How to kill REPLY blocked thread?  
> When you kill a process that has a REPLY blocked thread, then an unblock pulse
>  is sent to server, which
> can then decide what to do before replying to the client to unblock it.
> 
> Look for "Handling client unblocking due to signals or timeouts" in the "
> Writing a Resource Manager" section of the
> Programmers Guide.

Thank you, but if a server is badly written, what then? Can I kill REPLY blocked client somehow?

RobertL
Re: How to kill REPLY blocked thread?  
No, there's no way.

It would be easier to find and kill the author of the badly written server. :-)

bob lipka wrote:
>> When you kill a process that has a REPLY blocked thread, then an unblock pulse
>>  is sent to server, which
>> can then decide what to do before replying to the client to unblock it.
>>
>> Look for "Handling client unblocking due to signals or timeouts" in the "
>> Writing a Resource Manager" section of the
>> Programmers Guide.
> 
> Thank you, but if a server is badly written, what then? Can I kill REPLY blocked client somehow?
> 
> RobertL
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post12176
> 

-- 
cburgess@qnx.com
Re: How to kill REPLY blocked thread?  
> No, there's no way.
 
> It would be easier to find and kill the author of the badly written server. :-
> )
For me very easy. I am the one :) I just wanted to go easier way at the moment.

RobertL
Re: How to kill REPLY blocked thread?  
Take a look at Thomas' article here too - for a cautionary tale.

http://sendreceivereply.wordpress.com/2007/10/05/finding-an-unblock-victim/

bob lipka wrote:
>> No, there's no way.
>  
>> It would be easier to find and kill the author of the badly written server. :-
>> )
> For me very easy. I am the one :) I just wanted to go easier way at the moment.
> 
> RobertL
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post12182
> 

-- 
cburgess@qnx.com