summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ntpshm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 6d7bf2dd..4906d2e6 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -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);