diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-24 17:08:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-24 17:08:26 +0000 |
commit | e9c050ea60fb5936a84ec71258d41e4a2cc5a6d2 (patch) | |
tree | d0e3ba09093b31da3ccfd3bfc0cfabbd53f1dc7c /CMakeLists.txt | |
parent | 89cc304a2dde28aaab8e5c7062594b4bc5b70439 (diff) | |
download | rspamd-e9c050ea60fb5936a84ec71258d41e4a2cc5a6d2.tar.gz rspamd-e9c050ea60fb5936a84ec71258d41e4a2cc5a6d2.zip |
Set robust flag for mutexes to avoid dead locks.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 72b01cfed..1aabfd3a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -796,6 +796,7 @@ int main (void) pthread_mutexattr_t mattr; if (pthread_mutexattr_init(&mattr) != 0) return 0; if (pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED) != 0) return 0; + if (pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST) != 0) return 0; return 1; } ") |