Maybe the last my pull request is too trivial. Hope this one is not.
If there is something like /dev/shm/sem.lock already due to some problems like the deadlock and then quit forcefully, then sem_openwon't create and init as expected.
I added one check before sem_open to solve the problem.
Hope that the author can check my code when he is not busy.
Maybe the last my pull request is too trivial. Hope this one is not.
If there is something like
/dev/shm/sem.lock
already due to some problems like the deadlock and then quit forcefully, thensem_open
won't create and init as expected.I added one check before
sem_open
to solve the problem.Hope that the author can check my code when he is not busy.