aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index 32024a3..d70afc9 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -73,9 +73,9 @@
* @param instructions The instructions to run while the mutex is locked
*/
#define with_mutex(mutex, instructions) \
- pthread_mutex_lock(&(mutex)); \
+ errno = pthread_mutex_lock(&(mutex)); \
instructions \
- pthread_mutex_unlock(&(mutex))
+ errno = pthread_mutex_unlock(&(mutex))
/**