summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-02-02 13:43:39 -0800
committerGary E. Miller <gem@rellim.com>2015-02-02 13:52:17 -0800
commitd15d56d99ee950484faa8d273e3d38b955300242 (patch)
treee1e5cbf94c5bab9fa1cc25c6fd99cbd36c93d99e /gpsmon.c
parent61a37a2f3a8b47513f5d2e4a7dee0b3a4a581aed (diff)
downloadgpsd-d15d56d99ee950484faa8d273e3d38b955300242.tar.gz
Add missing ppslast_mutex init to gpsmon
This will prevent random pthread crashes.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index e5aa84ad..02479924 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -1163,6 +1163,9 @@ int main(int argc, char **argv)
gpsd_time_init(&context, time(NULL));
gpsd_init(&session, &context, NULL);
+#if defined(PPS_ENABLE)
+ pps_early_init( &context);
+#endif /* PPS_ENABLE */
/* Grok the server, port, and device. */
if (optind < argc) {