From 370bfb85c621d78c68f3834496c4c64fc93a2f49 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 28 Jun 2016 12:26:40 -0700 Subject: [PATCH] s3: tdb: On some platforms pthread_mutex_trylock() returns EBUSY not EDEADLK. Signed-off-by: Jeremy Allison --- lib/tdb/common/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tdb/common/mutex.c b/lib/tdb/common/mutex.c index c212842..280dec1 100644 --- a/lib/tdb/common/mutex.c +++ b/lib/tdb/common/mutex.c @@ -925,7 +925,7 @@ _PUBLIC_ bool tdb_runtime_check_for_robust_mutexes(void) } ret = pthread_mutex_trylock(m); - if (ret != EDEADLK) { + if (ret != EDEADLK && ret != EBUSY) { pthread_mutex_unlock(m); goto cleanup; } -- 2.8.0.rc3.226.g39d4020