Remove the shared mutex if no process is using it

If the code is crashed and the mutex may be in bad status. The user
has to mannually remove it. The fix will remove the shared mutex
if no process is using it.

Change-Id: I18bf562f2e0a7de8b3f0cccf72d60950b0d9bb2d
Este commit está contenido en:
Bill(Shuzhou) Liu authored and Shuzhou Liu committed 2022-11-22 10:30:58 -05:00
1 padre e7ed902fd6
commit 76b5528feb
2 files changed
+53 -2

No files matched your search

+1 -1
Ver fichero
@@ -41,10 +41,10 @@
*
*/
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <assert.h>
#include <sys/stat.h>
#include <stdint.h>