For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2004 > Unkillable process because of using semaphores?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unkillable process because of using semaphores?
Nish

2004-09-30, 4:07 pm

Hi,

I have some code, to which I added usage of posix semaphores. I am
working on a solaris platform. After doing that, my process becomes
unkillable, that is it will not terminate if sent a SIGTERM signal.
I am not ignoring that signal. Just adding this code related to
semaphores seems to be causing this problem. None of my threads is
sleeping indefinitely on any semaphore wait.
Any help will be appreciated.
If this is not the right group for this question, it would be great if
someone could guide me to the right group.

Thanks,
Nish.
Bjorn Reese

2004-09-30, 4:07 pm

On Thu, 30 Sep 2004 10:58:14 -0700, Nish wrote:

> I have some code, to which I added usage of posix semaphores. I am
> working on a solaris platform. After doing that, my process becomes
> unkillable, that is it will not terminate if sent a SIGTERM signal.
> I am not ignoring that signal. Just adding this code related to
> semaphores seems to be causing this problem. None of my threads is
> sleeping indefinitely on any semaphore wait.


What version of Solaris are you using? What does "pflags <pid>"
and "pstack <pid>" output? How much memory is the process using
when it is ignoring you?

--
mail1dotstofanetdotdk

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com