diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-09-26 22:05:00 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-09-26 22:05:00 +0200 |
commit | 886270ba9264a60dc0d37ee48e49c99bd0e022bf (patch) | |
tree | 1c3a4171e795417f98baaafa53063aae4b3e74ff | |
parent | 8ee5d4b415403d57a0669be5fa7605491b988c74 (diff) | |
download | librb-886270ba9264a60dc0d37ee48e49c99bd0e022bf.tar.gz librb-886270ba9264a60dc0d37ee48e49c99bd0e022bf.tar.bz2 librb-886270ba9264a60dc0d37ee48e49c99bd0e022bf.zip |
fix: read mutex remains locked after select() fails
-rw-r--r-- | rb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -947,6 +947,8 @@ static long rb_recvt pthread_mutex_unlock(&rb->lock); trace(("i/rb unlock")); + pthread_mutex_unlock(&rb->rlock); + trace(("read unlock")); return -1; } |