diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-25 08:35:13 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-08-25 08:35:13 +0000 |
commit | b95c08fa4cdc423b650b3d2b23bbbe3cd0f87c52 (patch) | |
tree | 54f3372275b19f52ccefc7c2936ec2685243ec23 /src | |
parent | 10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4 (diff) | |
parent | 7c20585b55660fa4cee68ab1bd4b7de2b1f5be53 (diff) | |
download | ouroboros-b95c08fa4cdc423b650b3d2b23bbbe3cd0f87c52.tar.gz ouroboros-b95c08fa4cdc423b650b3d2b23bbbe3cd0f87c52.zip |
Merged in sandervrijders/ouroboros/be-lock-fix (pull request #569)
lib: Fix bad locking in frcti_read
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index 8009a186..1310afd8 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -375,7 +375,7 @@ static ssize_t frcti_read(int fd) clock_gettime(CLOCK_REALTIME_COARSE, &now); - pthread_rwlock_rdlock(&ai.lock); + pthread_rwlock_wrlock(&ai.lock); frcti = &(ai.frcti[fd]); |