diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 11:59:58 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 11:59:58 -0400 |
commit | e83741e46d610264f8957e7620052c621507708e (patch) | |
tree | 425985454e33c3a6f5cafb9757bdc4ba17a25f0b /gpsd.c | |
parent | c9113f48734c16d919cd45e4f5357e3aa9656f47 (diff) | |
download | gpsd-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.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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); |