summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-29 10:15:22 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-29 10:15:54 +0200
commit462a3fb9b915dedf8b061b68a4db93f6e22ab29d (patch)
tree27d596fc4403363cfda9af734fc54edfad5258bd /src/lib
parentee1974debcfba8d8b10ea9a60437d04502b965dc (diff)
downloadouroboros-462a3fb9b915dedf8b061b68a4db93f6e22ab29d.tar.gz
ouroboros-462a3fb9b915dedf8b061b68a4db93f6e22ab29d.zip
ipcpd: fixes shutdown lockup in local and shim-udp
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/shm_ap_rbuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/shm_ap_rbuff.c b/src/lib/shm_ap_rbuff.c
index 666e053f..a855ed8f 100644
--- a/src/lib/shm_ap_rbuff.c
+++ b/src/lib/shm_ap_rbuff.c
@@ -259,9 +259,9 @@ struct rb_entry * shm_ap_rbuff_read(struct shm_ap_rbuff * rb)
return NULL;
pthread_cleanup_push((void(*)(void *))pthread_mutex_unlock,
- (void*) rb->shm_mutex);
-
+ (void *) rb->shm_mutex);
pthread_mutex_lock(rb->shm_mutex);
+
while(shm_rbuff_empty(rb))
pthread_cond_wait(rb->work, rb->shm_mutex);