Unix Programming - How do I clean up named semaphores not gracefullt cleaned up?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2006 > How do I clean up named semaphores not gracefullt cleaned up?





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 How do I clean up named semaphores not gracefullt cleaned up?
jaialai technology

2006-07-21, 7:24 pm

I have an application in development. I am using semaphore.h to create
some named semaphores using sem_open.
Unfortunately, my semphores were not gracefully cleaned up and now when
I try and run my application I get a segfault when I try and access the
named semaphore.
Is there a command I can use to delete all of these orphaned
semaphores?
Thanks!

gremnebulin

2006-07-23, 7:20 pm


jaialai technology wrote:
> I have an application in development. I am using semaphore.h to create
> some named semaphores using sem_open.
> Unfortunately, my semphores were not gracefully cleaned up and now when
> I try and run my application I get a segfault when I try and access the
> named semaphore.
> Is there a command I can use to delete all of these orphaned
> semaphores?
> Thanks!


ipcrm -s

maybe ?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com