summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-02 11:59:58 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-02 11:59:58 -0400
commite83741e46d610264f8957e7620052c621507708e (patch)
tree425985454e33c3a6f5cafb9757bdc4ba17a25f0b /gpsd.c
parentc9113f48734c16d919cd45e4f5357e3aa9656f47 (diff)
downloadgpsd-e83741e46d610264f8957e7620052c621507708e.tar.gz
There is no longer any reason that > 1 PPS threads can't run.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gpsd.c b/gpsd.c
index 91f76130..c6573265 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -694,22 +694,19 @@ static bool open_device( /*@null@*/struct gps_device_t *device)
if (NULL == device || gpsd_activate(device, O_OPTIMIZE) < 0) {
return false;
}
+
#ifdef NTPSHM_ENABLE
/*
* Now is the right time to grab the shared memory segment(s)
* to communicate the navigation message derived and (possibly)
* 1PPS derived time data to ntpd/chrony.
*/
- /* do not start more than one PPS-watcher thread */
- if (!(device->shmindex >= 0))
- ntpshm_link_activate(device);
-
+ ntpshm_link_activate(device);
gpsd_report(context.debug, LOG_INF,
"NTPD ntpshm_link_activate: %d\n",
(int)device->shmindex >= 0);
-
-
#endif /* NTPSHM_ENABLE */
+
gpsd_report(context.debug, LOG_INF,
"device %s activated\n", device->gpsdata.dev.path);
FD_SET(device->gpsdata.gps_fd, &all_fds);