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
이 커밋은 다음에 포함됨:
Bill(Shuzhou) Liu 작성하고 Shuzhou Liu가 2022-11-22 10:30:58 -05:00를 커밋함
1 부모 e7ed902fd6
커밋 76b5528feb
2 파일이 변경됨
+53 -2

검색과 일치하는 파일 없음

+1 -1
파일 보기
@@ -41,10 +41,10 @@
*
*/
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <assert.h>
#include <sys/stat.h>
#include <stdint.h>