]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2202] Don't use PTHREAD_MUTEX_ROBUST
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 5 Sep 2012 10:57:20 +0000 (12:57 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 5 Sep 2012 10:57:20 +0000 (12:57 +0200)
It seems it isn't portable and it's not very useful check.

src/lib/util/threads/lock.cc

index 16e59bd04c15c0a860b2113dd1ac64b7002d1710..e3e9f7e458d1c42b8a367d65c5fd986fa505238c 100644 (file)
@@ -78,9 +78,7 @@ Mutex::Mutex(bool recursive) :
     if (recursive) {
         type = PTHREAD_MUTEX_RECURSIVE;
     }
-    // Stop on first error you find and store the result.
-    result = pthread_mutexattr_settype(&attributes, type) ||
-        pthread_mutexattr_setrobust(&attributes, PTHREAD_MUTEX_ROBUST);
+    result = pthread_mutexattr_settype(&attributes, type);
     if (result != 0) {
         isc_throw(isc::InvalidOperation, strerror(result));
     }