projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b58f1
)
Fix mutex lock in read_event
author
Andrew Bays
<andrew.bays@gmail.com>
Fri, 23 Mar 2018 11:08:55 +0000
(07:08 -0400)
committer
GitHub
<noreply@github.com>
Fri, 23 Mar 2018 11:08:55 +0000
(07:08 -0400)
src/procevent.c
patch
|
blob
|
history
diff --git
a/src/procevent.c
b/src/procevent.c
index
7fab655
..
368e7c4
100644
(file)
--- a/
src/procevent.c
+++ b/
src/procevent.c
@@
-803,7
+803,7
@@
static int read_event() {
// in the ring buffer for consumption by the main polling thread.
if (proc_status != -1) {
- pthread_mutex_
un
lock(&procevent_lock);
+ pthread_mutex_lock(&procevent_lock);
int next = ring.head + 1;
if (next >= ring.maxLen)