diff options
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]); |