diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-17 10:04:46 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-17 10:04:46 -0500 |
commit | bb23daaa007705d0751e3c386da4a0fb542a91a1 (patch) | |
tree | 0ab8802f730c230ff32ed9990b19423f57a14076 /gpsd.c | |
parent | 102f05a4e93d592386b40974bea0b3f5a8d648da (diff) | |
download | gpsd-bb23daaa007705d0751e3c386da4a0fb542a91a1.tar.gz |
Try to ensure that threads don't keep running after gpsd is signalled.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2421,6 +2421,10 @@ int main(int argc, char *argv[]) (void)gpsd_wrap(&devices[dfd]); } +#ifdef PPS_ENABLE + context.pps_hook = NULL; /* tell any PPS-watcher thread to die */ +#endif /* PPS_ENABLE */ + gpsd_report(context.debug, LOG_WARN, "exiting.\n"); #ifdef SOCKET_EXPORT_ENABLE |