diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-17 06:50:34 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-17 06:50:34 -0500 |
commit | cde31a4b148190e6a3cba4d1ede5bcc283dbc684 (patch) | |
tree | 6911440f5ab242ee8d3b93721a8df82f7df76428 | |
parent | b5bb030d74d3546f86877d674ad439947fcd7640 (diff) | |
download | gpsd-cde31a4b148190e6a3cba4d1ede5bcc283dbc684.tar.gz |
Don't talk to NTP when we're running inside the test harness
All regression tests pass.
-rw-r--r-- | ntpshm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -448,6 +448,10 @@ void ntpshm_link_deactivate(struct gps_device_t *session) void ntpshm_link_activate(struct gps_device_t *session) /* set up ntpshm storage for a session */ { + /* don't talk to NTP when we're running inside the test harness */ + if (session->sourcetype == source_pty) + return; + /* allocate a shared-memory segment for "NMEA" time data */ session->shm_clock = ntpshm_alloc(session->context); |