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 cometimento está contido em:
Bill(Shuzhou) Liu criou e Shuzhou Liu cometeu 2022-11-22 10:30:58 -05:00
1 ascendente e7ed902fd6
cometimento 76b5528feb
2 ficheiros modificados
+53 -2

Não existem ficheiros que correspondam à sua pesquisa

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