summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-28 22:13:24 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-28 22:25:42 +0200
commite7aa1ba135d358a0c03c9bcb7157c86a6d9e95c5 (patch)
tree3c4283f1ff1fc36face4f921e05432fc5021952d /src/ipcpd
parent6aea30b730381af91300397a02e684a462bf55a7 (diff)
downloadouroboros-e7aa1ba135d358a0c03c9bcb7157c86a6d9e95c5.tar.gz
ouroboros-e7aa1ba135d358a0c03c9bcb7157c86a6d9e95c5.zip
lib: shm_ap_rbuff: sleep when read on empty rbuff
When the ring buffer is empty, a read call will sleep. A write call on an empty ring buffer will wake up sleeping readers.
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/shim-udp/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index c6c16ebf..33b4be2f 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -783,7 +783,6 @@ static void * ipcp_udp_sdu_loop(void * o)
}
e = shm_ap_rbuff_read(_ap_instance->rb);
-
if (e == NULL) {
rw_lock_unlock(&_ipcp->state_lock);
continue;