So, for reference stackoverflow just recommends not doing this: http://stackoverflow.com/questions/2053679/how-do-i-recover-a-semaphore-when-the-process-that-decremented-it-to-zero-crashe
So, for reference stackoverflow just recommends not doing this: http:// stackoverflow. com/questions/ 2053679/ how-do- i-recover- a-semaphore- when-the- process- that-decremente d-it-to- zero-crashe