diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-21 20:44:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-21 20:44:29 +0000 |
commit | a2b694ddd5c1c305d1b7a185f8f9f6c0a429e4f5 (patch) | |
tree | fb77feee6602b9ef6ec7fdac320f23efd07861e6 | |
parent | 5b6e3d5fb01ef1e62387405eedf328b2d13f7897 (diff) | |
download | gpsd-a2b694ddd5c1c305d1b7a185f8f9f6c0a429e4f5.tar.gz |
Nailed Rob's raw-mode core dump.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | gpsd.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -10,8 +10,6 @@ EPH and EPV reports are zeroed too often in the TSIP code. There is some bad interaction between the policy code in libgpsd_core.c and the driver that we haven't figured out. -Turning on raw mode on the TSIP driver core-dumps the daemon. - *** PPS code is flaky Som code attempting to terminate the PPS-monutoring thread when there @@ -320,7 +320,9 @@ static void raw_hook(struct gps_data_t *ud, for (cfd = 0; cfd < FD_SETSIZE; cfd++) { /* copy raw NMEA sentences from GPS to clients in raw mode */ - if (subscribers[cfd].raw == level && ud->gps_device!=NULL && strcmp(ud->gps_device, (subscribers[cfd].device->gpsdata.gps_device))==0) + if (subscribers[cfd].raw == level && + subscribers[cfd].device && + strcmp(ud->gps_device, subscribers[cfd].device->gpsdata.gps_device)==0) (void)throttled_write(cfd, sentence, (ssize_t)len); } } |