projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1599c4
)
gps plugin: Properly unlock mutex after waiting.
author
Florian Forster
<octo@collectd.org>
Mon, 20 Nov 2017 10:21:41 +0000
(11:21 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 20 Nov 2017 10:24:28 +0000
(11:24 +0100)
How did this ever work?!
CID: 158522
src/gps.c
patch
|
blob
|
history
diff --git
a/src/gps.c
b/src/gps.c
index
141c032
..
686710b
100644
(file)
--- a/
src/gps.c
+++ b/
src/gps.c
@@
-26,10
+26,10
@@
* Marc Fournier <marc.fournier at camptocamp.com>
**/
+#include "collectd.h"
#include "common.h"
#include "plugin.h"
#include "utils_time.h"
-#include "collectd.h"
#define CGPS_TRUE 1
#define CGPS_FALSE 0
@@
-80,7
+80,7
@@
static int cgps_thread_pause(cdtime_t pTime) {
int ret = !cgps_thread_shutdown;
- pthread_mutex_lock(&cgps_thread_lock);
+ pthread_mutex_
un
lock(&cgps_thread_lock);
return ret;
}