1839583 Members
2231 Online
110151 Solutions
New Discussion

Blocked on semaphore

 
James D. Bennett
Occasional Contributor

Blocked on semaphore

Is there a way to track down what processes are sharing semaphores? Specifically, I have a pid that is 100% blocked on semaphore and I would like to see if another pid holding the semaphore is hung. Thanks.
3 REPLIES 3

Re: Blocked on semaphore

There was a post earlier today on how to get this info:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3bc03a7b3682d611abdb0090277a778c,00.html

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Martin Johnson
Honored Contributor

Re: Blocked on semaphore

You can get some information by doing "ipcs -sa", but I don't think it will give you the blocking information.

HTH
Marty
James D. Bennett
Occasional Contributor

Re: Blocked on semaphore

Thanks, the script is useful, but is there a way to show which semaphore ID a process is waiting on?