aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-11 07:02:16 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-11 07:02:16 +0200
commitbc190c5ac25155e0c4a53f8ea74e16082de6229d (patch)
tree4d1e1f509e3b9f506dcdea8191a18ce2e1835d4e /src/libmdsserver
parentm + release all resources before re-execing (diff)
downloadmds-bc190c5ac25155e0c4a53f8ea74e16082de6229d.tar.gz
mds-bc190c5ac25155e0c4a53f8ea74e16082de6229d.tar.bz2
mds-bc190c5ac25155e0c4a53f8ea74e16082de6229d.tar.xz
a much of multicasting stuff
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libmdsserver')
-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))
/**